jsmin is a python2 script
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 28 Nov 2019 10:14:47 +0000 (11:14 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 28 Nov 2019 10:14:47 +0000 (11:14 +0100)
Makefile
jsmin.py

index d400e2c..3df691f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -46,7 +46,7 @@ endif
 compress:
        $(foreach file,\
                $(shell find . -type f -iname "*.js" | grep -v datepicker.js | grep -v raphael),\
-               $(shell python jsmin.py < $(file) > $(file).new && mv $(file).new $(file)))
+               $(shell python2 jsmin.py < $(file) > $(file).new && mv $(file).new $(file)))
        @echo "Compressed .js files with jsmin.py"
 
 .PHONY: compress
index ae75814..5568c7f 100644 (file)
--- a/jsmin.py
+++ b/jsmin.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python\r
+#!/usr/bin/python2\r
 \r
 # This code is original from jsmin by Douglas Crockford, it was translated to\r
 # Python by Baruch Even. The original code had the following copyright and\r