Diff for /loncom/html/adm/LC_math_editor/build.sh between versions 1.1 and 1.2

version 1.1, 2014/09/24 18:14:31 version 1.2, 2015/02/24 15:20:36
Line 1 Line 1
 #!/bin/bash  #!/bin/bash
   
 # this builds dist/LC_math_editor.min.js using google closure compiler with compressjs.  # this builds dist/LC_math_editor.min.js using google closure compiler.
 # It must be run in the math_editor directory.  # It must be run in the math_editor directory.
   
 cd "$(dirname "$0")"  cd "$(dirname "$0")"
Line 18  cat <<% >>$tmp Line 18  cat <<% >>$tmp
         "Operator": Operator,          "Operator": Operator,
         "ParseException": ParseException,          "ParseException": ParseException,
         "Parser": Parser,          "Parser": Parser,
         "initEditors": initEditors          "initEditors": initEditors,
           "updateMathSpanAndDiv": updateMathSpanAndDiv
     });      });
 }();  }();
 %  %
   
   # use the local application if Java is available
   if hash java 2>/dev/null; then
       java -jar lib/compiler.jar --language_in=ECMASCRIPT5_STRICT --compilation_level=SIMPLE_OPTIMIZATIONS $tmp >dist/LC_math_editor.min.js
       exit 0
   fi
   
   # otherwise use the web service with compressjs.sh
 NEWFILE="c`date +"%d%m%y"`.js"  NEWFILE="c`date +"%d%m%y"`.js"
 /bin/sh ../../../build/compressjs.sh -strict $tmp  /bin/sh ./compressjs.sh -strict $tmp
 mv "$NEWFILE" ./dist/LC_math_editor.min.js  mv "$NEWFILE" ./dist/LC_math_editor.min.js
 rm -f $tmp  rm -f $tmp

Removed from v.1.1  
changed lines
  Added in v.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>