Created
June 4, 2014 05:43
-
-
Save sputnikus/99e3dfbb339b2cfa62ec to your computer and use it in GitHub Desktop.
End-To-End extension build script fo Arch Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
jscompile_e2e="python2 closure-library/closure/bin/build/closurebuilder.py --root end-to-end --root closure-library --root closure-templates/javascript --root zlib.js/src --root typedarray -o compiled -c compiler.jar" | |
csscompile_e2e="java -jar closure-stylesheets-20111230.jar end-to-end/javascript/crypto/e2e/extension/ui/styles/base.css" | |
# compile javascript files | |
$jscompile_e2e -i end-to-end/javascript/crypto/e2e/extension/bootstrap.js > end-to-end/javascript/crypto/e2e/extension/launcher_binary.js | |
$jscompile_e2e -i end-to-end/javascript/crypto/e2e/extension/helper/helper.js > end-to-end/javascript/crypto/e2e/extension/helper_binary.js | |
$jscompile_e2e -i end-to-end/javascript/crypto/e2e/extension/ui/glass/bootstrap.js > end-to-end/javascript/crypto/e2e/extension/glass_binary.js | |
$jscompile_e2e -i end-to-end/javascript/crypto/e2e/extension/ui/prompt/prompt.js > end-to-end/javascript/crypto/e2e/extension/prompt_binary.js | |
$jscompile_e2e -i end-to-end/javascript/crypto/e2e/extension/ui/settings/settings.js > end-to-end/javascript/crypto/e2e/extension/settings_binary.js | |
$jscompile_e2e -i end-to-end/javascript/crypto/e2e/extension/ui/welcome/welcome.js > end-to-end/javascript/crypto/e2e/extension/welcome_binary.js | |
# copy html files | |
find end-to-end/javascript/crypto/e2e/extension/ui -regex .*.html | xargs -n 1 cp -f -t end-to-end/javascript/crypto/e2e/extension | |
# copy css files | |
$csscompile_e2e end-to-end/javascript/crypto/e2e/extension/ui/glass/glass.css > end-to-end/javascript/crypto/e2e/extension/glass_styles.css | |
$csscompile_e2e end-to-end/javascript/crypto/e2e/extension/ui/prompt/prompt.css > end-to-end/javascript/crypto/e2e/extension/prompt_styles.css | |
$csscompile_e2e end-to-end/javascript/crypto/e2e/extension/ui/settings/settings.css > end-to-end/javascript/crypto/e2e/extension/settings_styles.css | |
$csscompile_e2e end-to-end/javascript/crypto/e2e/extension/ui/welcome/welcome.css > end-to-end/javascript/crypto/e2e/extension/welcome_styles.css | |
# copy gmonkey_stub.js | |
cp -f end-to-end/javascript/crypto/e2e/extension/helper/gmonkeystub.js end-to-end/javascript/crypto/e2e/extension/gmonkeystub.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment