summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorJoachim Breitner <nomeata@debian.org>2017-08-01 19:30:09 +0000
committerBen Gamari <ben@smart-cactus.org>2017-10-26 19:12:54 -0400
commita10c2e6e9e9af3addbf91c0bb374257fb6c72553 (patch)
tree82cadc307ede041fb777d7052b239ec2a4eecd4a /rules
parent9ae24bb615416b3e8d972d45ebe3dd281242d213 (diff)
downloadhaskell-a10c2e6e9e9af3addbf91c0bb374257fb6c72553.tar.gz
Don't use $SHELL in wrapper scripts
Do not use $SHELL as $SHELL is the user's preferred interactive shell. We do not want this to leak into the wrapper scripts.
Diffstat (limited to 'rules')
-rw-r--r--rules/shell-wrapper.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/rules/shell-wrapper.mk b/rules/shell-wrapper.mk
index eb7d8f13ab..bdab6e289d 100644
--- a/rules/shell-wrapper.mk
+++ b/rules/shell-wrapper.mk
@@ -41,7 +41,7 @@ $$($1_$2_INPLACE_WRAPPER): $$($1_$2_SHELL_WRAPPER_NAME)
endif
$$($1_$2_INPLACE_WRAPPER): $$($1_$2_INPLACE)
$$(call removeFiles, $$@)
- echo '#!$$(SHELL)' >> $$@
+ echo '#!/bin/sh' >> $$@
echo 'executablename="$$(TOP)/$$<"' >> $$@
echo 'datadir="$$(TOP)/$$(INPLACE_LIB)"' >> $$@
echo 'bindir="$$(TOP)/$$(INPLACE_BIN)"' >> $$@
@@ -80,7 +80,7 @@ install_$1_$2_wrapper:
$$(INSTALL_DIR) "$$(DESTDIR)$$(bindir)"
$$(call removeFiles, "$$(WRAPPER)")
$$(CREATE_SCRIPT) "$$(WRAPPER)"
- echo '#!$$(SHELL)' >> "$$(WRAPPER)"
+ echo '#!/bin/sh' >> "$$(WRAPPER)"
echo 'exedir="$$(ghclibexecdir)/bin"' >> "$$(WRAPPER)"
echo 'exeprog="$$($1_$2_PROG)"' >> "$$(WRAPPER)"
echo 'executablename="$$$$exedir/$$$$exeprog"' >> "$$(WRAPPER)"
@@ -106,7 +106,7 @@ BINDIST_EXTRAS += $$($1_$2_BINDIST_WRAPPER)
$$($1_$2_BINDIST_WRAPPER): $1/$2/build/tmp/$$($1_$2_PROG)
$$(call removeFiles, $$@)
- echo '#!$$(SHELL)' >> $$@
+ echo '#!/bin/sh' >> $$@
ifeq "$$(DYNAMIC_GHC_PROGRAMS)" "YES"
echo '$$(call prependLibraryPath,$$($1_$2_DEP_LIB_REL_DIRS_SEARCHPATH))' >> $$@
endif