From 3498af280e5b9bc28f2854cfed2cb36ea5cc9025 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Sun, 20 Oct 2013 15:11:07 +0800 Subject: [PATCH] slighly improve the js compile sh --- share/js_src/compile.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/share/js_src/compile.sh b/share/js_src/compile.sh index 5b444b1..cfb2f63 100755 --- a/share/js_src/compile.sh +++ b/share/js_src/compile.sh @@ -9,12 +9,12 @@ BASEDIR=$(dirname $0) OUTPUT="$BASEDIR/../pdf2htmlEX.js" -(echo "Compiling pdf2htmlEX.js with closure-compiler..." && \ +(echo 'Compiling pdf2htmlEX.js with closure-compiler...' && \ tmpfile=$(mktemp 2>/dev/null) && \ java -jar "$BASEDIR/../../3rdparty/closure-compiler/compiler.jar" --compilation_level ADVANCED_OPTIMIZATIONS --process_jquery_primitives --externs "$BASEDIR/../jquery.js" --js "$BASEDIR/css_class_names.js" --js "$BASEDIR/viewer.js" > "$tmpfile" 2>/dev/null && \ cat "$BASEDIR/header.js" "$tmpfile" > "$OUTPUT" && \ - rm -f -- "$tmpfile") || \ -(echo "Failed. Fall back to naive concatenation" && \ + rm -f -- "$tmpfile" && \ + echo 'Done.') || \ +(echo 'Failed. Read `3rdparty/closure-compiler/README` for more detail.' && \ +echo 'Fall back to naive concatenation' && \ cat "$BASEDIR/header.js" "$BASEDIR/css_class_names.js" "$BASEDIR/viewer.js" > "$OUTPUT") - -