[Pkg-haskell-commits] darcs: ghc: Fetch ProjectVersion from VERSION file

Joachim Breitner mail at joachim-breitner.de
Fri Feb 3 16:37:28 UTC 2012


Sat Aug  6 17:50:14 UTC 2011  Joachim Breitner <mail at joachim-breitner.de>
  * Fetch ProjectVersion from VERSION file
  Ignore-this: cc4a5e3d4e69b3cf714983396a9766a2

    M ./rules -1 +1

Sat Aug  6 17:50:14 UTC 2011  Joachim Breitner <mail at joachim-breitner.de>
  * Fetch ProjectVersion from VERSION file
  Ignore-this: cc4a5e3d4e69b3cf714983396a9766a2
diff -rN -u old-ghc//rules new-ghc//rules
--- old-ghc//rules	2012-02-03 16:37:21.619249443 +0000
+++ new-ghc//rules	2012-02-03 16:37:27.607257850 +0000
@@ -25,7 +25,7 @@
 #  confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
 #endif
 
-ProjectVersion=$(shell awk -F\' "/^PACKAGE_VERSION='[0-9.]+'\$$/ { print \$$2 }" configure)
+ProjectVersion=$(shell cat VERSION)
 
 GHC=$(firstword $(shell bash -c "type -p ghc"))
 EXTRA_CONFIGURE_FLAGS=--with-ghc="$(GHC)"





More information about the Pkg-haskell-commits mailing list