summaryrefslogtreecommitdiff
path: root/utils/hsc2hs
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2007-06-23 20:00:06 +0000
committerSimon Marlow <simonmar@microsoft.com>2007-06-23 20:00:06 +0000
commite58f0bfbdc3d8459e9546aad293ed46aec5ca66b (patch)
tree5c9c7c4dfae46020a7a82c81a4ebbceee2f0c3b5 /utils/hsc2hs
parent05960aa68358fa6d921f41fe4a00480efe46477a (diff)
downloadhaskell-e58f0bfbdc3d8459e9546aad293ed46aec5ca66b.tar.gz
make inplace scripts less sensitive to /bin/sh quoting by avoiding \
Diffstat (limited to 'utils/hsc2hs')
-rw-r--r--utils/hsc2hs/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/hsc2hs/Makefile b/utils/hsc2hs/Makefile
index b2e4d5b6f5..b11617fcf4 100644
--- a/utils/hsc2hs/Makefile
+++ b/utils/hsc2hs/Makefile
@@ -45,7 +45,7 @@ endif
$(INPLACE_HS): Makefile $(FPTOOLS_TOP)/mk/config.mk
echo "import System.Cmd; import System.Environment; import System.Exit" > $@
- echo "main = getArgs >>= \args -> rawSystem \"$(TOP_ABS)/$(GHC_HSC2HS_DIR_REL)/$(HS_PROG)\" (\"--template=$(TOP_ABS)/$(GHC_HSC2HS_DIR_REL)/template-hsc.h\":\"--cc=$(CC)\":\"--ld=$(CC)\"$(patsubst %,:\"%\",$(extra_flags)):\"--cflag=-D__GLASGOW_HASKELL__=$(ProjectVersionInt)\":\"-I$(TOP_ABS)/$(GHC_INCLUDE_DIR_REL)\":args) >>= exitWith" >> $@
+ echo "main = do args <- getArgs; rawSystem \"$(TOP_ABS)/$(GHC_HSC2HS_DIR_REL)/$(HS_PROG)\" (\"--template=$(TOP_ABS)/$(GHC_HSC2HS_DIR_REL)/template-hsc.h\":\"--cc=$(CC)\":\"--ld=$(CC)\"$(patsubst %,:\"%\",$(extra_flags)):\"--cflag=-D__GLASGOW_HASKELL__=$(ProjectVersionInt)\":\"-I$(TOP_ABS)/$(GHC_INCLUDE_DIR_REL)\":args) >>= exitWith" >> $@
$(INPLACE_PROG): $(INPLACE_HS)
$(GHC) --make $< -o $@