The branch, master has been updated via 3538fd83c27930d20e42e9d70664aab478c828aa (commit) from f552d312b3d08606f292abdc23932bc7a708b43a (commit)
- Log ----------------------------------------------------------------- commit 3538fd83c27930d20e42e9d70664aab478c828aa Author: Michal Čihař michal@cihar.com Date: Mon Aug 15 17:17:32 2011 +0200
Safer compression
Always have working file in js/
-----------------------------------------------------------------------
Summary of changes: scripts/compress-js | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/scripts/compress-js b/scripts/compress-js index ea43782..445cae4 100755 --- a/scripts/compress-js +++ b/scripts/compress-js @@ -4,6 +4,7 @@ set -e
for file in `find js -name '*.js' -not -name '*min.js'` ; do mkdir -p sources/`dirname $file` - mv $file sources/$file - java -jar ./scripts/google-javascript-compiler/compiler.jar --js sources/$file --js_output_file $file + java -jar ./scripts/google-javascript-compiler/compiler.jar --js $file --js_output_file $file.tmp + cp -a $file sources/$file + mv $file.tmp $file done
hooks/post-receive