25 lines
519 B
Bash
Executable File
25 lines
519 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
# parameters
|
|
PHPDOC_SOURCE_DIR="$1"
|
|
PHPDOC_TARGET_DIR="$2"
|
|
PHPDOC_TITLE="$3"
|
|
|
|
# print parameters
|
|
echo "Generating phpDocs..."
|
|
printf 'PHPDOC_SOURCE_DIR="%s"\n' "$PHPDOC_SOURCE_DIR"
|
|
printf 'PHPDOC_TARGET_DIR="%s"\n' "$PHPDOC_TARGET_DIR"
|
|
printf 'PHPDOC_TITLE="%s"\n' "$PHPDOC_TITLE"
|
|
echo
|
|
|
|
# generate phpdoc
|
|
phpdoc -d "$PHPDOC_SOURCE_DIR" \
|
|
-i 'build/*' \
|
|
-i 'vendor/*' \
|
|
-i 'plugins/*' -f 'plugins/DummyPlugin.php' \
|
|
-t "$PHPDOC_TARGET_DIR" \
|
|
--title "$PHPDOC_TITLE"
|
|
|
|
echo
|