mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-21 21:57:38 +01:00
scripts.mk: ~/bin script now executes target script in the same shell
This commit is contained in:
parent
0f42458a2c
commit
a05b30d507
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ install:$(INSTALLED_EXE_SH)
|
||||||
|
|
||||||
HOME_BIN_EXE_SH = $(addprefix $(HOME)/bin/, $(notdir $(LOCAL_EXE_SH)))
|
HOME_BIN_EXE_SH = $(addprefix $(HOME)/bin/, $(notdir $(LOCAL_EXE_SH)))
|
||||||
$(HOME)/bin/%: %
|
$(HOME)/bin/%: %
|
||||||
echo -e "#!/bin/sh\nsh $(shell pwd)/$< $$"'@' > $@.tmp
|
echo -e "#!/bin/sh\n. $(shell pwd)/$< $$"'@' > $@.tmp
|
||||||
chmod 755 $@.tmp
|
chmod 755 $@.tmp
|
||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue