We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddb382e commit 9a1a642Copy full SHA for 9a1a642
1 file changed
docs-generate
@@ -26,4 +26,18 @@ fi
26
DIR="$( cd -P "$( dirname "$0" )"/.. >/dev/null 2>&1 && pwd )"
27
CFG_FILE="$DIR/Config/phpdoc.xml"
28
29
-bin/phpdoc.php --configuration="${CFG_FILE}" "$@"
+# Bail out if phpcs isn't available to us
30
+PHPDOC="$( which phpdoc )"
31
+if [ $? -gt 0 ]; then
32
+ PHPDOC="$BIN_DIR/phpdoc"
33
+ test -x $PHPDOC
34
+fi
35
36
+ echo "!! The 'phpdoc' command was not found on this system."
37
+ echo ""
38
+ exit 1
39
40
+echo "## Found phpdoc at: ${PHPDOC}"
41
+
42
43
+$PHPDOC --configuration="${CFG_FILE}" "$@"
0 commit comments