source: subversion/trunk/roundcubemail/bin/makedoc.sh @ 2230

Last change on this file since 2230 was 2230, checked in by till, 4 years ago
  • generalized executable paths for bash and phpdoc
  • simplyfied probing for phpdoc
  • added checks to make sure this is executed on the shell
  • Property svn:executable set to *
File size: 609 bytes
RevLine 
[2230]1#!/usr/bin/env bash
[666]2
[2230]3if [ -z "$SSH_TTY" ]
4then
5  if [ -z "$DEV_TTY" ]
6  then
7    echo "Not on the shell."
8    exit 1
9  fi
10fi
11
[666]12TITLE="RoundCube Classes"
13PACKAGES="Core"
14
[1952]15INSTALL_PATH="`dirname $0`/.."
16PATH_PROJECT=$INSTALL_PATH/program/include
17PATH_DOCS=$INSTALL_PATH/doc/phpdoc
[2230]18BIN_PHPDOC="`/usr/bin/which phpdoc`"
[666]19
[2230]20if [ ! -x "$BIN_PHPDOC" ]
[1952]21then
[2230]22  echo "phpdoc not found: $BIN_PHPDOC"
[1952]23  exit 1
24fi
25
[666]26OUTPUTFORMAT=HTML
27CONVERTER=frames
28TEMPLATE=earthli
29PRIVATE=off
30
31# make documentation
[2230]32$BIN_PHPDOC -d $PATH_PROJECT -t $PATH_DOCS -ti "$TITLE" -dn $PACKAGES \
[666]33-o $OUTPUTFORMAT:$CONVERTER:$TEMPLATE -pp $PRIVATE
34
Note: See TracBrowser for help on using the repository browser.