Add javascript compressor.

It uses http://code.google.com/closure/compiler/ for now.
This commit is contained in:
Michal Čihař
2010-04-13 11:33:07 +02:00
parent ed9ef7cb12
commit 176583f4ae
6 changed files with 480 additions and 0 deletions

View File

@@ -130,10 +130,18 @@ if [ $GETTEXT -eq 1 ] ; then
./scripts/generate-mo
fi
if [ -f ./scripts/compress-js ] ; then
echo "* Compressing javascript files"
./scripts/compress-js
fi
# Remove test directory from package to avoid Path disclosure messages
# if someone runs /test/wui.php and there are test failures
rm -rf test
# Remove javascript compiler, no need to ship it
rm -rf scripts/google-javascript-compiler/
# Remove git metadata
rm -rf .git