summaryrefslogtreecommitdiff
path: root/hadrian/bindist
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-10-19 10:20:02 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-10-19 22:22:02 -0400
commitd73131b9315abf39fc2d307b1c59bf8edd1e43ac (patch)
treeae379b4cb5f6dd803fcec3514a6d6529c70626e8 /hadrian/bindist
parentf8ce38e62c19fb346f33b246efc205fb37999d14 (diff)
downloadhaskell-d73131b9315abf39fc2d307b1c59bf8edd1e43ac.tar.gz
hadrian: Fix quoting in binary distribution installation Makefile
Previously we failed to quote various paths in Hadrian's installation Makefile, resulting in #20506.
Diffstat (limited to 'hadrian/bindist')
-rw-r--r--hadrian/bindist/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/hadrian/bindist/Makefile b/hadrian/bindist/Makefile
index 7dea178000..327d56e090 100644
--- a/hadrian/bindist/Makefile
+++ b/hadrian/bindist/Makefile
@@ -30,9 +30,9 @@ define installscript
# to it. This implementation is a bit hacky and depends on consistency
# of program names. For hadrian build this will work as programs have a
# consistent naming procedure.
- if [ -L wrappers/$1 ]; then echo "$1 is a symlink"; fi
- @if [ -L wrappers/$1 ]; then \
- cp -RP wrappers/$1 '$2'; \
+ if [ -L 'wrappers/$1' ]; then echo "$1 is a symlink"; fi
+ @if [ -L 'wrappers/$1' ]; then \
+ cp -RP 'wrappers/$1' '$2'; \
else \
rm -f '$2' && \
$(CREATE_SCRIPT) '$2' && \
@@ -45,7 +45,7 @@ define installscript
echo "docdir=\"$7\"" >> '$2' && \
echo "includedir=\"$8\"" >> '$2' && \
echo "" >> '$2' && \
- cat wrappers/$1 >> '$2' && \
+ cat 'wrappers/$1' >> '$2' && \
$(EXECUTABLE_FILE) '$2' ; \
fi
@echo "$1 installed to $2"