GHC build system: Make *nix installation work in paths containing spaces
authorIan Lynagh <igloo@earth.li>
Thu, 5 Nov 2009 16:06:06 +0000 (16:06 +0000)
committerIan Lynagh <igloo@earth.li>
Thu, 5 Nov 2009 16:06:06 +0000 (16:06 +0000)
ghc.mk
hsc2hs.wrapper

diff --git a/ghc.mk b/ghc.mk
index 45cfdf0..3be5d61 100644 (file)
--- a/ghc.mk
+++ b/ghc.mk
@@ -47,7 +47,7 @@ install: install_utils/hsc2hs_dist_install
 
 .PHONY: install_utils/hsc2hs_dist_install
 install_utils/hsc2hs_dist_install: utils/hsc2hs/template-hsc.h
-       $(INSTALL_HEADER) $(INSTALL_OPTS) $< $(DESTDIR)$(topdir)
+       $(INSTALL_HEADER) $(INSTALL_OPTS) $< "$(DESTDIR)$(topdir)"
 
 BINDIST_EXTRAS += utils/hsc2hs/template-hsc.h
 
index 1b675c2..0d82ff6 100644 (file)
@@ -12,4 +12,4 @@ for arg do
     esac
 done
 
-exec $executablename $tflag $HSC2HS_EXTRA ${1+"$@"} "$Iflag"
+exec "$executablename" "$tflag" $HSC2HS_EXTRA ${1+"$@"} "$Iflag"