make, scripts: Now excplicitly calling python2 executable instead of python

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2018-01-02 13:12:00 +00:00
commit e68d4eb83b
11 changed files with 23 additions and 16 deletions

View file

@ -11,7 +11,7 @@ endif
HOME_BIN_EXE_SH = $(addprefix $(HOME)/bin/, $(notdir $(EXE_SH)))
$(HOME)/bin/%.py: %.py
echo -e "#!/bin/bash\nexec /usr/bin/python $(shell $(PWD))/$<" '"$$@"' > $@.tmp
echo -e "#!/bin/bash\nexec /usr/bin/python2 $(shell $(PWD))/$<" '"$$@"' > $@.tmp
chmod 755 $@.tmp
mv $@.tmp $@