mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
ed9477aa5b
When running this on Mac, it works fine. But when running it on Ubuntu in labs, the condition checking for "VE-LOAD" head and body always evaluate to false. Not sure what's up with that, but since these lines no longer contain whitespace, a straight comparison is all we need. Also removed the duplicate `<head>` tag in the template. Change-Id: Ic7e8351e784be35fd0104269be331cf9bd0c08b4
22 lines
467 B
Bash
Executable file
22 lines
467 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 --section=head --ve-path=../modules/
|
|
elif [[ "$l" == "{{VE-LOAD-BODY}}" ]]
|
|
then
|
|
php ../maintenance/makeStaticLoader.php --section=body --ve-path=../modules/
|
|
else
|
|
echo "$l"
|
|
fi
|
|
done
|
|
) < eg-iframe.tpl | php > eg-iframe.html
|
|
|
|
jsduck --config=config.json
|
|
rm eg-iframe.html
|
|
cd - > /dev/null
|