summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2016-08-05 09:42:09 +0200
committerGabor Greif <ggreif@gmail.com>2016-08-05 09:42:09 +0200
commit1101045cbdbd6f240fa7e2438d9488822cd604fb (patch)
tree85c29a360675778a1d31e2b5ebae78740b11abcc /utils
parentdb5a22627b3e6bcc9fa17fbc070daac0919b552a (diff)
downloadhaskell-1101045cbdbd6f240fa7e2438d9488822cd604fb.tar.gz
Trim all spaces after 'version:'
... that we grep out of libraries/Cabal/Cabal/Cabal.cabal This is necessary because the file got reformatted in the 'master' branch.
Diffstat (limited to 'utils')
-rw-r--r--utils/ghc-cabal/ghc.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/ghc-cabal/ghc.mk b/utils/ghc-cabal/ghc.mk
index c06a011297..62338eeb25 100644
--- a/utils/ghc-cabal/ghc.mk
+++ b/utils/ghc-cabal/ghc.mk
@@ -14,7 +14,7 @@
# Euch, hideous hack:
# XXX This should be in a different Makefile
-CABAL_DOTTED_VERSION := $(shell grep "^version:" libraries/Cabal/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)"