Quoting Sascha Steinbiss (2021-02-20 20:56:13) > If you are wondering why there haven't been any updates lately, I am > sad to announce that current versions of datatables.js does not build > anymore with the old version of closure-compiler in Debian.
Looks like it does not really need to use closure-compiler, so I would suggest to instead use uglifyjs. Patch attached. - Jonas -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ [x] quote me freely [ ] ask before reusing [ ] keep private
--- a/build/include.sh +++ b/build/include.sh @@ -124,14 +124,7 @@ cp $DIR/$FILE.js $TMPDIR/$FILE.js perl -i -0pe "s/^\/\*! (.*)$/\/** \@license \$1/s" $TMPDIR/$FILE.js - rm -f $TMPDIR/closure_error.log || true - java -jar $CLOSURE --charset 'utf-8' --js $TMPDIR/$FILE.js > $TMPDIR/$FILE.min.js 2> $TMPDIR/closure_error.log - - if [ -e $TMPDIR/closure_error.log ]; then - if [ -z "$LOG" -o "$LOG" = "on" ]; then - cat $TMPDIR/closure_error.log - fi - fi + uglifyjs $TMPDIR/$FILE.js > $TMPDIR/$FILE.min.js # And add the important comment back in perl -i -0pe "s/^\/\*/\/*!/s" $TMPDIR/$FILE.min.js
signature.asc
Description: signature