From 2ed223c6365c03eeabfadb91b39d1d1e543794dc Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Tue, 15 Oct 2013 14:58:18 +0000 Subject: [PATCH] scripts-targets.mk: Now correctly installing python scripts with build.py Signed-off-by: Jan Lindemann --- make/scripts-targets.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/make/scripts-targets.mk b/make/scripts-targets.mk index ae4b6b9b..c0e31fc6 100644 --- a/make/scripts-targets.mk +++ b/make/scripts-targets.mk @@ -9,11 +9,16 @@ install: install-home-bin endif HOME_BIN_EXE_SH = $(addprefix $(HOME)/bin/, $(notdir $(EXE_SH))) -$(HOME)/bin/%: % +$(HOME)/bin/%.sh: %.sh echo -e "#!/bin/sh\n. $(shell pwd)/$<" '"$$@"' > $@.tmp chmod 755 $@.tmp mv $@.tmp $@ +$(HOME)/bin/%.py: %.py + echo -e "#!/bin/sh\nexec /usr/bin/python $(shell pwd)/$<" '"$$@"' > $@.tmp + chmod 755 $@.tmp + mv $@.tmp $@ + install-home-bin: $(HOME_BIN_EXE_SH) clean.init: