[project @ 2001-03-20 15:57:30 by simonmar]
authorsimonmar <unknown>
Tue, 20 Mar 2001 15:57:30 +0000 (15:57 +0000)
committersimonmar <unknown>
Tue, 20 Mar 2001 15:57:30 +0000 (15:57 +0000)
play quoting games to hopefully get this to build with both ghc-4.08.2
and ghc-4.11+.

ghc/utils/ghc-pkg/Main.hs
ghc/utils/ghc-pkg/Makefile

index 6ff2055..931d54c 100644 (file)
@@ -1,5 +1,5 @@
 -----------------------------------------------------------------------------
--- $Id: Main.hs,v 1.2 2001/03/16 10:04:31 simonmar Exp $
+-- $Id: Main.hs,v 1.3 2001/03/20 15:57:30 simonmar Exp $
 --
 -- Package management tool
 -----------------------------------------------------------------------------
@@ -18,7 +18,9 @@ import Directory
 import System
 import IO
 
-default_pkgconf = clibdir ++ "/package.conf"
+-- string gap games to confuse CPP.
+default_pkgconf = "\ 
+   \ clibdir" ++ "/package.conf"
 
 main = do
   args <- getArgs
index d786868..27dd6bf 100644 (file)
@@ -1,11 +1,11 @@
 # -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.3 2001/03/16 10:07:02 simonmar Exp $
+# $Id: Makefile,v 1.4 2001/03/20 15:57:30 simonmar Exp $
 
 TOP=../..
 include $(TOP)/mk/boilerplate.mk
 
 HS_PROG           = ghc-pkg
-SRC_HC_OPTS      += -cpp -DPKG_TOOL -DWANT_PRETTY -package lang -package util -package text -Dclibdir='\"$(libdir)\"'
+SRC_HC_OPTS      += -cpp -DPKG_TOOL -DWANT_PRETTY -package lang -package util -package text -Dclibdir="$(libdir)"
 
 INSTALL_PROGS = $(HS_PROG)