mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +00:00
ba7b10962b
Change-Id: I8a0d8bb8ece598991b9fd1b85cf618463a950fed
28 lines
674 B
Bash
Executable file
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
|