summaryrefslogtreecommitdiff
path: root/utils/runghc
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-11-05 16:23:00 +0000
committerIan Lynagh <igloo@earth.li>2009-11-05 16:23:00 +0000
commitf65bf7559b3e92607cfcf7a334e9994891dd9c32 (patch)
tree2e25a23c0baa60c14b8bf0a459732e3e1a36cc55 /utils/runghc
parent723eb70f31b2b413a51387bbbfbe01bb9b8c5907 (diff)
downloadhaskell-f65bf7559b3e92607cfcf7a334e9994891dd9c32.tar.gz
Make installation on *nix work for paths with spaces in their name
This means we can remove some conditional stuff from the Makefiles, and means the testsuite doesn't have to work out whether or not it's on Windows.
Diffstat (limited to 'utils/runghc')
-rw-r--r--utils/runghc/ghc.mk4
-rw-r--r--utils/runghc/runghc.wrapper2
2 files changed, 3 insertions, 3 deletions
diff --git a/utils/runghc/ghc.mk b/utils/runghc/ghc.mk
index 8892ce0c82..a70e38a03b 100644
--- a/utils/runghc/ghc.mk
+++ b/utils/runghc/ghc.mk
@@ -32,7 +32,7 @@ install_runhaskell: install_bins
"$(CP)" $(DESTDIR)$(bindir)/runghc$(exeext) $(DESTDIR)$(bindir)/runhaskell$(exeext)
else
install_runhaskell:
- "$(RM)" $(RM_OPTS) $(DESTDIR)$(bindir)/runhaskell
- $(LN_S) runghc $(DESTDIR)$(bindir)/runhaskell
+ "$(RM)" $(RM_OPTS) "$(DESTDIR)$(bindir)/runhaskell"
+ $(LN_S) runghc "$(DESTDIR)$(bindir)/runhaskell"
endif
diff --git a/utils/runghc/runghc.wrapper b/utils/runghc/runghc.wrapper
index 71b869cb54..9110dccacf 100644
--- a/utils/runghc/runghc.wrapper
+++ b/utils/runghc/runghc.wrapper
@@ -1,3 +1,3 @@
#!/bin/sh
-exec $executablename -f $bindir/ghc ${1+"$@"}
+exec "$executablename" -f "$bindir/ghc" ${1+"$@"}