mediawiki-extensions-Visual.../.docs/generate.sh
Timo Tijhof ba7b10962b docgen: Use new jsduck --color and --warnings-exit-nonzero option
Change-Id: I8a0d8bb8ece598991b9fd1b85cf618463a950fed
2013-04-30 20:53:22 +02:00

28 lines
674 B
Bash
Executable file

#!/usr/bin/env bash
cd $(cd $(dirname $0); pwd)
(
while IFS='' read -r l
do
if [[ "$l" == "{{VE-LOAD-HEAD}}" ]]
then
php ../maintenance/makeStaticLoader.php --fixdir --section=head --ve-path=../modules/ $*
elif [[ "$l" == "{{VE-LOAD-BODY}}" ]]
then
php ../maintenance/makeStaticLoader.php --fixdir --section=body --ve-path=../modules/ $*
else
echo "$l"
fi
done
) < eg-iframe.tpl | php > eg-iframe.html
# Disable parallel processing which seems to be causing problems under Ruby 1.8
jsduck --config=config.json --processes=0 --color --warnings-exit-nonzero
ec=$?
rm eg-iframe.html
cd - > /dev/null
# Exit with exit code of jsduck command
exit $ec