mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
scripts-targets.mk: Replace /bin/sh by /bin/bash in scripts-targets.mk
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
149e7a52d3
commit
c28871c075
1 changed files with 4 additions and 4 deletions
|
|
@ -11,22 +11,22 @@ endif
|
|||
HOME_BIN_EXE_SH = $(addprefix $(HOME)/bin/, $(notdir $(EXE_SH)))
|
||||
|
||||
$(HOME)/bin/%.py: %.py
|
||||
echo -e "#!/bin/sh\nexec /usr/bin/python $(shell pwd)/$<" '"$$@"' > $@.tmp
|
||||
echo -e "#!/bin/bash\nexec /usr/bin/python $(shell pwd)/$<" '"$$@"' > $@.tmp
|
||||
chmod 755 $@.tmp
|
||||
mv $@.tmp $@
|
||||
|
||||
$(HOME)/bin/%.pl: %.pl
|
||||
echo -e "#!/bin/sh\nexec /usr/bin/perl $(shell pwd)/$<" '"$$@"' > $@.tmp
|
||||
echo -e "#!/bin/bash\nexec /usr/bin/perl $(shell pwd)/$<" '"$$@"' > $@.tmp
|
||||
chmod 755 $@.tmp
|
||||
mv $@.tmp $@
|
||||
|
||||
$(HOME)/bin/%.sh: %.sh
|
||||
echo -e "#!/bin/sh\n. $(shell pwd)/$<" '"$$@"' > $@.tmp
|
||||
echo -e "#!/bin/bash\n. $(shell pwd)/$<" '"$$@"' > $@.tmp
|
||||
chmod 755 $@.tmp
|
||||
mv $@.tmp $@
|
||||
|
||||
$(HOME)/bin/%: %
|
||||
echo -e "#!/bin/sh\n. $(shell pwd)/$<" '"$$@"' > $@.tmp
|
||||
echo -e "#!/bin/bash\n. $(shell pwd)/$<" '"$$@"' > $@.tmp
|
||||
chmod 755 $@.tmp
|
||||
mv $@.tmp $@
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue