mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-17 03:18:48 +00:00
22 lines
463 B
Bash
22 lines
463 B
Bash
|
#!/usr/bin/env bash
|
||
|
cd $(cd $(dirname $0); pwd)
|
||
|
|
||
|
(
|
||
|
while IFS='' read -r l
|
||
|
do
|
||
|
if [[ "$l" =~ {{VE-LOAD-BODY}} ]]
|
||
|
then
|
||
|
php ../maintenance/makeStaticLoader.php --section=body --ve-path=../modules/
|
||
|
elif [[ "$l" =~ {{VE-LOAD-HEAD}} ]]
|
||
|
then
|
||
|
php ../maintenance/makeStaticLoader.php --section=head --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
|