From b94d86261c7d010f45ab126e610b01edb70168e0 Mon Sep 17 00:00:00 2001 From: Laurent Pugin Date: Tue, 4 Mar 2014 23:49:27 +0100 Subject: [PATCH] adding zip file creation --- emscripten/build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/emscripten/build.sh b/emscripten/build.sh index 03a90a7409f..c8e02ea5718 100755 --- a/emscripten/build.sh +++ b/emscripten/build.sh @@ -131,5 +131,13 @@ if [ $? -eq 0 ]; then echo "Done." # the wrapper is necessary with closure 1 for avoiding to conflict with globals cat verovio-wrapper-start.js build/verovio.js verovio-wrapper-end.js verovio-proxy.js > "build/$FILENAME" + # all good echo "build/$FILENAME written" + # create also a zip file if version name is given + if [ -n "$VERSION_NAME" ]; then + cd "build" + zip "$FILENAME.zip" "$FILENAME" + cd .. + echo "build/$FILENAME.zip written" + fi fi