summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rwxr-xr-xutils/fingerprint/fingerprint.py2
-rw-r--r--utils/ghc-cabal/ghc-cabal.cabal2
-rw-r--r--utils/ghc-cabal/ghc.mk13
-rw-r--r--utils/ghc-pkg/ghc-pkg.cabal2
-rw-r--r--utils/ghc-pkg/ghc.mk2
-rw-r--r--utils/ghctags/Main.hs4
-rw-r--r--utils/lndir/lndir.c2
-rw-r--r--utils/runghc/runghc.cabal.in2
8 files changed, 16 insertions, 13 deletions
diff --git a/utils/fingerprint/fingerprint.py b/utils/fingerprint/fingerprint.py
index f04b98ecd4..5a753279e6 100755
--- a/utils/fingerprint/fingerprint.py
+++ b/utils/fingerprint/fingerprint.py
@@ -159,7 +159,7 @@ def validate(opts, args, parser):
if opts.dir:
fname = opts.output
if fname is None:
- fname = datetime.today().strftime("%Y-%m%-%d_%H-%M-%S") + ".fp"
+ fname = datetime.today().strftime("%Y-%m-%d_%H-%M-%S") + ".fp"
path = os.path.join(opts.dir, fname)
opts.output_file = path
opts.output = file(path, "w")
diff --git a/utils/ghc-cabal/ghc-cabal.cabal b/utils/ghc-cabal/ghc-cabal.cabal
index cd8d550c2e..55a4a188ad 100644
--- a/utils/ghc-cabal/ghc-cabal.cabal
+++ b/utils/ghc-cabal/ghc-cabal.cabal
@@ -16,7 +16,7 @@ Executable ghc-cabal
Main-Is: ghc-cabal.hs
Build-Depends: base >= 3 && < 5,
- Cabal >= 1.10 && < 1.12,
+ Cabal >= 1.10 && < 1.14,
directory >= 1.1 && < 1.2,
filepath >= 1.2 && < 1.3
diff --git a/utils/ghc-cabal/ghc.mk b/utils/ghc-cabal/ghc.mk
index 9026eb18a8..39a26f07d3 100644
--- a/utils/ghc-cabal/ghc.mk
+++ b/utils/ghc-cabal/ghc.mk
@@ -14,16 +14,16 @@
# Euch, hideous hack:
# XXX This should be in a different Makefile
-CABAL_DOTTED_VERSION := $(shell grep "^Version:" libraries/Cabal/Cabal.cabal | sed "s/^Version: //")
+CABAL_DOTTED_VERSION := $(shell grep "^Version:" libraries/Cabal/cabal/Cabal.cabal | sed "s/^Version: //")
CABAL_VERSION := $(subst .,$(comma),$(CABAL_DOTTED_VERSION))
CABAL_CONSTRAINT := --constraint="Cabal == $(CABAL_DOTTED_VERSION)"
$(GHC_CABAL_INPLACE) : $(GHC_CABAL_DIR)/dist/build/tmp/ghc-cabal$(exeext) | $$(dir $$@)/.
"$(CP)" $< $@
-$(GHC_CABAL_DIR)/dist/build/tmp/ghc-cabal$(exeext): $(wildcard libraries/Cabal/Distribution/*/*/*.hs)
-$(GHC_CABAL_DIR)/dist/build/tmp/ghc-cabal$(exeext): $(wildcard libraries/Cabal/Distribution/*/*.hs)
-$(GHC_CABAL_DIR)/dist/build/tmp/ghc-cabal$(exeext): $(wildcard libraries/Cabal/Distribution/*.hs)
+$(GHC_CABAL_DIR)/dist/build/tmp/ghc-cabal$(exeext): $(wildcard libraries/Cabal/cabal/Distribution/*/*/*.hs)
+$(GHC_CABAL_DIR)/dist/build/tmp/ghc-cabal$(exeext): $(wildcard libraries/Cabal/cabal/Distribution/*/*.hs)
+$(GHC_CABAL_DIR)/dist/build/tmp/ghc-cabal$(exeext): $(wildcard libraries/Cabal/cabal/Distribution/*.hs)
$(GHC_CABAL_DIR)/dist/build/tmp/ghc-cabal$(exeext): $(GHC_CABAL_DIR)/Main.hs | $$(dir $$@)/. bootstrapping/.
"$(GHC)" $(SRC_HC_OPTS) --make $(GHC_CABAL_DIR)/Main.hs -o $@ \
@@ -32,9 +32,10 @@ $(GHC_CABAL_DIR)/dist/build/tmp/ghc-cabal$(exeext): $(GHC_CABAL_DIR)/Main.hs | $
-DCABAL_VERSION=$(CABAL_VERSION) \
-odir bootstrapping \
-hidir bootstrapping \
- -ilibraries/Cabal \
+ -ilibraries/Cabal/cabal \
-ilibraries/filepath \
- -ilibraries/hpc
+ -ilibraries/hpc \
+ $(utils/ghc-cabal_dist_EXTRA_HC_OPTS)
touch $@
# touch is required, because otherwise if mkdirhier is newer, we
diff --git a/utils/ghc-pkg/ghc-pkg.cabal b/utils/ghc-pkg/ghc-pkg.cabal
index a0f3c36e1d..4f96dcc4ba 100644
--- a/utils/ghc-pkg/ghc-pkg.cabal
+++ b/utils/ghc-pkg/ghc-pkg.cabal
@@ -20,7 +20,7 @@ Executable ghc-pkg
Build-Depends: base >= 4 && < 5,
directory >= 1 && < 1.2,
- process >= 1 && < 1.1,
+ process >= 1 && < 1.2,
filepath,
Cabal,
binary,
diff --git a/utils/ghc-pkg/ghc.mk b/utils/ghc-pkg/ghc.mk
index 6bc9be57a4..03c9523e37 100644
--- a/utils/ghc-pkg/ghc.mk
+++ b/utils/ghc-pkg/ghc.mk
@@ -58,7 +58,7 @@ utils/ghc-pkg/dist/build/$(utils/ghc-pkg_dist_PROG)$(exeext): utils/ghc-pkg/Main
-hidir bootstrapping \
-iutils/ghc-pkg \
-XCPP -XExistentialQuantification -XDeriveDataTypeable \
- -ilibraries/Cabal \
+ -ilibraries/Cabal/cabal \
-ilibraries/filepath \
-ilibraries/extensible-exceptions \
-ilibraries/hpc \
diff --git a/utils/ghctags/Main.hs b/utils/ghctags/Main.hs
index 4ba8157dcc..fafd63eabb 100644
--- a/utils/ghctags/Main.hs
+++ b/utils/ghctags/Main.hs
@@ -11,7 +11,7 @@ import HscTypes ( msHsFilePath )
import Name ( getOccString )
--import ErrUtils ( printBagOfErrors )
import Panic ( panic )
-import DynFlags ( defaultDynFlags )
+import DynFlags ( defaultLogAction )
import Bag
import Exception
import FastString
@@ -102,7 +102,7 @@ main = do
then Just `liftM` openFile "TAGS" openFileMode
else return Nothing
- GHC.defaultErrorHandler (defaultDynFlags (panic "No settings")) $
+ GHC.defaultErrorHandler defaultLogAction $
runGhc (Just ghc_topdir) $ do
--liftIO $ print "starting up session"
dflags <- getSessionDynFlags
diff --git a/utils/lndir/lndir.c b/utils/lndir/lndir.c
index bfce2b515e..8269f6ec9e 100644
--- a/utils/lndir/lndir.c
+++ b/utils/lndir/lndir.c
@@ -324,6 +324,8 @@ int rel; /* if true, prepend "../" to fn before using */
continue;
if (!strcmp (dp->d_name, ".svn"))
continue;
+ if (!strcmp (dp->d_name, ".git"))
+ continue;
if (!strcmp (dp->d_name, "_darcs"))
continue;
if (!strcmp (dp->d_name, "CVS.adm"))
diff --git a/utils/runghc/runghc.cabal.in b/utils/runghc/runghc.cabal.in
index 7dfdc97a5d..3bab879c91 100644
--- a/utils/runghc/runghc.cabal.in
+++ b/utils/runghc/runghc.cabal.in
@@ -21,7 +21,7 @@ Executable runghc
if flag(base3)
Build-Depends: base >= 3 && < 5,
directory >= 1 && < 1.2,
- process >= 1 && < 1.1
+ process >= 1 && < 1.2
else
Build-Depends: base < 3
Build-Depends: filepath