[Pkg-cli-libs-commits] [SCM] nunit branch, master, updated. upstream/2.4.7+dfsg-32-gbbcd491
Julian Taylor
jtaylor.debian at googlemail.com
Mon Jun 13 18:17:43 UTC 2011
The following commit has been merged in the master branch:
commit 91dc8f1950fbfd226fc9d63001276b162e0d9f38
Author: Julian Taylor <jtaylor.debian at googlemail.com>
Date: Mon Jun 13 14:36:03 2011 +0200
update get-orig-source
fetches the version listed in changelog and removes some binaries
diff --git a/debian/rules b/debian/rules
index 58c5e87..4e579ff 100755
--- a/debian/rules
+++ b/debian/rules
@@ -48,12 +48,12 @@ clean: unpatch
%:
dh $@
-upstream_version=$(shell uscan --dehs | sed -n 's/.*<upstream-version>\(.*\)<\/upstream-version>.*/\1/p')
+upstream_version=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-\+]+)+(\+dfsg)*.*,\1,p')
get-orig-source::
- mkdir nunit-$(upstream_version)
- cd nunit-$(upstream_version) && unzip ../../NUnit-$(upstream_version)-src.zip
- rm -rf nunit-$(upstream_version)/build
- cd nunit-$(upstream_version) && $(NANT) /f:src/nunit.build mono-1.0 clean-all
- cd nunit-$(upstream_version) && $(NANT) /f:src/nunit.build mono-2.0 clean-all
- tar cfz ../nunit_$(upstream_version).orig.tar.gz nunit-$(upstream_version)
- rm -rf nunit-$(upstream_version)
+ uscan --force-download --destdir=. --download-version=$(upstream_version)
+ rm -rf nunit-$(upstream_version)/
+ unzip NUnit-$(upstream_version)-src.zip
+ find NUnit-$(upstream_version)/ -name "*.exe" -delete
+ find NUnit-$(upstream_version)/ -name "*.dll" -delete
+ tar cfz nunit_$(upstream_version)+dfsg.orig.tar.gz NUnit-$(upstream_version)/
+ rm -rf NUnit-$(upstream_version)/
--
nunit
More information about the Pkg-cli-libs-commits
mailing list