[Pkg-haskell-commits] darcs: darcs: Add a get-orig-source helper.
Trent W. Buck
trentbuck at gmail.com
Sat Mar 20 16:46:48 UTC 2010
Mon Feb 15 01:07:46 UTC 2010 Trent W. Buck <trentbuck at gmail.com>
* Add a get-orig-source helper.
Ignore-this: 45358deba5df0884ae1ee3fa0e30150d
M ./rules +8
Mon Feb 15 01:07:46 UTC 2010 Trent W. Buck <trentbuck at gmail.com>
* Add a get-orig-source helper.
Ignore-this: 45358deba5df0884ae1ee3fa0e30150d
diff -rN -u -purd old-darcs/rules new-darcs/rules
--- old-darcs/rules 2010-03-20 16:46:48.392947255 +0000
+++ new-darcs/rules 2010-03-20 16:46:48.404947887 +0000
@@ -18,3 +18,11 @@ ifneq (nocheck,$(filter nocheck,$(DEB_BU
endif
Setup:
ghc --make Setup
+
+# After checking out the debian/ repo, untar the associated upstream
+# tarball over the top of it.
+P = $(shell dpkg-parsechangelog | sed -rn 's/^Source: //p')
+V = $(shell dpkg-parsechangelog | sed -rn 's/^Version: (\d+:)?(.*)-.*/\2/p')
+get-orig-source:
+ uscan --download-current-version
+ tar -C .. --xform 's|^[^/]*|$(notdir $(CURDIR))|' -xf ../$P_$V.orig.tar.gz
More information about the Pkg-haskell-commits
mailing list