scripts.mk: Preserve quotes over invocation of wrapper script (result of install-home-bin

This commit is contained in:
Jan Lindemann 2007-06-23 10:57:52 +00:00 committed by Jan Lindemann
commit dcb5f1d9e2

View file

@ -13,7 +13,7 @@ install:$(INSTALLED_EXE_SH)
HOME_BIN_EXE_SH = $(addprefix $(HOME)/bin/, $(notdir $(EXE_SH))) HOME_BIN_EXE_SH = $(addprefix $(HOME)/bin/, $(notdir $(EXE_SH)))
$(HOME)/bin/%: % $(HOME)/bin/%: %
echo -e "#!/bin/sh\n. $(shell pwd)/$< $$"'@' > $@.tmp echo -e "#!/bin/sh\n. $(shell pwd)/$<" '"$$@"' > $@.tmp
chmod 755 $@.tmp chmod 755 $@.tmp
mv $@.tmp $@ mv $@.tmp $@