-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocs-generate
More file actions
executable file
·35 lines (28 loc) · 883 Bytes
/
docs-generate
File metadata and controls
executable file
·35 lines (28 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env bash
# Execute phpDocumentor with a standard config file.
#---------------------------------------------------------------------
usage ()
{
cat <<EOT
${0##*/}
Convenience wrapper around phpDocumentor. Any additional
arguments will be passed to phpdoc itself. By default, HTML docs
will be generated in tmp/docs/. Depends on phpdoc being
installed into bin/ via composer.
Usage:
bin/${0##*/} [additional phpdoc args]
EOT
exit ${1:-0} # Exit with code 0 unless an arg is passed to the method.
}
if [ "$1" = '-h' ]; then
usage
fi
DIR="$( cd -P "$( dirname "$0" )"/.. >/dev/null 2>&1 && pwd )"
# If phpdoc bin script installed use that
if [ -e "bin/phpdoc" ]; then
bin/vagrant-exec "bin/phpdoc "$@""
elif [ -e "bin/phpdoc.php" ]; then
bin/vagrant-exec "bin/phpdoc.php "$@""
else
echo "!! Unable to locate the 'phpdoc' bin command. !!"
fi