From: Thierry Parmentelat Date: Thu, 28 Nov 2019 10:14:47 +0000 (+0100) Subject: jsmin is a python2 script X-Git-Tag: plewww-5.3-0~33 X-Git-Url: http://git.onelab.eu/?p=plewww.git;a=commitdiff_plain;h=67cecc5f1fc64fb535c21d5b0b24729b67f37626 jsmin is a python2 script --- diff --git a/Makefile b/Makefile index d400e2c..3df691f 100644 --- 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 diff --git a/jsmin.py b/jsmin.py index ae75814..5568c7f 100644 --- a/jsmin.py +++ b/jsmin.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python2 # This code is original from jsmin by Douglas Crockford, it was translated to # Python by Baruch Even. The original code had the following copyright and