[Pkg-haskell-commits] darcs: haskell-devscripts: get version from debian package
Sven Bartscher
sven.bartscher at weltraumschlangen.de
Thu May 29 13:41:02 UTC 2014
Thu May 29 13:15:22 UTC 2014 Sven Bartscher <sven.bartscher at weltraumschlangen.de>
* get version from debian package
M ./dh_haskell_blurbs -1 +3
Thu May 29 13:15:22 UTC 2014 Sven Bartscher <sven.bartscher at weltraumschlangen.de>
* get version from debian package
diff -rN -u old-haskell-devscripts/dh_haskell_blurbs new-haskell-devscripts/dh_haskell_blurbs
--- old-haskell-devscripts/dh_haskell_blurbs 2014-05-29 13:41:02.511873309 +0000
+++ new-haskell-devscripts/dh_haskell_blurbs 2014-05-29 13:41:02.523873308 +0000
@@ -55,7 +55,9 @@
haskell:LongDescription=$longDescription
__END__
- echo "haskell:ghc-version=`ghc --numeric-version`" >> $sfile.tmp
+ version=$(dpkg-query --showformat='${version}' --show ghc | egrep -o ".*-" \
+ | egrep -o "[^-]*")
+ echo "haskell:ghc-version=ghc (>= ${version}), ghc (<< ${version}+)" >> $sfile.tmp
mv $sfile.tmp $sfile
done
More information about the Pkg-haskell-commits
mailing list