1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 04:50:09 +00:00
This commit is contained in:
Lu Wang 2013-10-21 10:25:11 +08:00
parent 5c37c0ca98
commit 1d42f31fee

View File

@ -10,7 +10,14 @@ BASEDIR=$(dirname $0)
OUTPUT="$BASEDIR/../pdf2htmlEX.js" OUTPUT="$BASEDIR/../pdf2htmlEX.js"
(echo 'Building pdf2htmlEX.js with closure-compiler...' && \ (echo 'Building pdf2htmlEX.js with closure-compiler...' && \
java -jar "$BASEDIR/../../3rdparty/closure-compiler/compiler.jar" --compilation_level ADVANCED_OPTIMIZATIONS --process_jquery_primitives --externs "$BASEDIR/../jquery.js" --js "$BASEDIR/header.js" --js "$BASEDIR/css_class_names.js" --js "$BASEDIR/viewer.js" > "$OUTPUT" 2>/dev/null && \ java -jar "$BASEDIR/../../3rdparty/closure-compiler/compiler.jar" \
--compilation_level ADVANCED_OPTIMIZATIONS \
--process_jquery_primitives \
--externs "$BASEDIR/../jquery.js" \
--js "$BASEDIR/header.js" \
--js "$BASEDIR/css_class_names.js" \
--js "$BASEDIR/viewer.js" \
--js_output_file "$OUTPUT" 2>/dev/null && \
echo 'Done.') || \ echo 'Done.') || \
(echo 'Failed. Read `3rdparty/closure-compiler/README` for more detail.' && \ (echo 'Failed. Read `3rdparty/closure-compiler/README` for more detail.' && \
echo 'Fall back to naive concatenation' && \ echo 'Fall back to naive concatenation' && \