diff options
Diffstat (limited to 'install')
-rwxr-xr-x | install/ui/util/uglifyjs/uglify | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/install/ui/util/uglifyjs/uglify b/install/ui/util/uglifyjs/uglify index 50dfb51d5..7d25b38df 100755 --- a/install/ui/util/uglifyjs/uglify +++ b/install/ui/util/uglifyjs/uglify @@ -23,4 +23,10 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -rhino -main $DIR/uglify-js.js $DIR/ug.js $1 $2 -v
\ No newline at end of file +# rhino-1.7R4 doesn't have -main option to enable CommonJS support. It was +# replaced by -require option. +if [ `rhino --help | grep -e -require | wc -l` -gt 0 ] ; then + rhino -require $DIR/uglify-js.js $@ +else + rhino -main $DIR/uglify-js.js $DIR/ug.js $@ +fi
\ No newline at end of file |