1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00

don't compile jquery which would cause error

This commit is contained in:
Lu Wang 2013-10-19 15:21:36 +08:00
parent a210576e46
commit 88cd715fa3
2 changed files with 2 additions and 2 deletions

View File

@ -11,10 +11,10 @@ OUTPUT="$BASEDIR/../pdf2htmlEX.js"
(echo "Compiling pdf2htmlEX.js with closure-compiler..." && \ (echo "Compiling pdf2htmlEX.js with closure-compiler..." && \
tmpfile=$(mktemp 2>/dev/null) && \ tmpfile=$(mktemp 2>/dev/null) && \
java -jar "$BASEDIR/../../3rdparty/closure-compiler/compiler.jar" --compilation_level ADVANCED_OPTIMIZATIONS --process_jquery_primitives --js "$BASEDIR/jquery.js" --js "$BASEDIR/css_class_names.js" --js "$BASEDIR/viewer.js" > "$tmpfile" 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" && \ cat "$BASEDIR/header.js" "$tmpfile" > "$OUTPUT" && \
rm -f -- "$tmpfile") || \ rm -f -- "$tmpfile") || \
(echo "Failed. Fall back to naive concatenation" && \ (echo "Failed. Fall back to naive concatenation" && \
cat "$BASEDIR/header.js" "$BASEDIR/jquery.js" "$BASEDIR/css_class_names.js" "$BASEDIR/viewer.js" > "$OUTPUT") cat "$BASEDIR/header.js" "$BASEDIR/css_class_names.js" "$BASEDIR/viewer.js" > "$OUTPUT")