Codebase list libmicroba-java / 3e16c08
* Improve get-orig-source target in debian/rules (and debian/watch). gregor herrmann 17 years ago
3 changed file(s) with 10 addition(s) and 12 deletion(s). Raw diff Collapse all Expand all
0 libmicroba-java (0.4.4.dfsg-2) UNRELEASED; urgency=low
1
2 * Improve get-orig-source target in debian/rules (and debian/watch).
3
4 -- gregor herrmann <gregor+debian@comodo.priv.at> Sat, 28 Apr 2007 18:18:58 +0200
5
06 libmicroba-java (0.4.4.dfsg-1) unstable; urgency=low
17
28 * New upstream release.
88 # Uncomment this to turn on verbose mode.
99 #export DH_VERBOSE=1
1010
11 CURRENT:=$(shell dpkg-parsechangelog | perl -ne 'print if s/^Version: ([0-9.]+).dfsg.*$$/$$1/')
12 URL:=$(shell uscan -report | grep -Eo "http://qa.debian.org/watch/sf.php/microba/microba-.+-full.zip")
13
14 ifeq ($(strip $(URL)),)
15 URL:="http://qa.debian.org/watch/sf.php/microba/microba-$(CURRENT)-full.zip"
16 endif
17
18 VERSION:=$(shell echo $(URL) | perl -pe 's/.+microba-(.+)-full.+/$$1/g')
11 TARBALL:=$(shell uscan --force-download --verbose | tail -n 2 | perl -ne 'print $$_ if s;.*(microba-[\d\.]+-full.zip).*;../$$1;')
12 VERSION:=$(shell echo $(TARBALL) | perl -pe 's;../microba-(.+)-full.zip;$$1;')
1913 TMPDIR:=$(shell mktemp -d)
2014
2115 get-orig-source:
22 wget -q -P$(TMPDIR) $(URL)
23 unzip $(TMPDIR)/*.zip -d $(TMPDIR)/libmicroba-java-$(VERSION)
16 unzip $(TARBALL) -d $(TMPDIR)/libmicroba-java-$(VERSION)
2417 zip -d $(TMPDIR)/libmicroba-java-$(VERSION)/microba-$(VERSION)-sources.jar "lib-compiletime/*"
2518 cd $(TMPDIR) && tar cfz libmicroba-java-$(VERSION).dfsg.tar.gz libmicroba-java-$(VERSION) && cd $(CURDIR)
2619 mv $(TMPDIR)/libmicroba-java-$(VERSION).dfsg.tar.gz $(CURDIR)/../
00 # Compulsory line, this is a version 3 file
11 version=3
22 opts=dversionmangle=s/\.dfsg$// \
3 http://sf.net/microba/microba-(.*)-full\.zip
4
3 http://sf.net/microba/microba-(.*)-full\.zip debian echo