play quoting games to hopefully get this to build with both ghc-4.08.2
and ghc-4.11+.
-----------------------------------------------------------------------------
--- $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
-----------------------------------------------------------------------------
import System
import IO
-default_pkgconf = clibdir ++ "/package.conf"
+-- string gap games to confuse CPP.
+default_pkgconf = "\
+ \ clibdir" ++ "/package.conf"
main = do
args <- getArgs
# -----------------------------------------------------------------------------
-# $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)