* Improve get-orig-source target in debian/rules (and debian/watch).
gregor herrmann
17 years ago
|
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 |
|
0 | 6 |
libmicroba-java (0.4.4.dfsg-1) unstable; urgency=low
|
1 | 7 |
|
2 | 8 |
* New upstream release.
|
8 | 8 |
# Uncomment this to turn on verbose mode.
|
9 | 9 |
#export DH_VERBOSE=1
|
10 | 10 |
|
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;')
|
19 | 13 |
TMPDIR:=$(shell mktemp -d)
|
20 | 14 |
|
21 | 15 |
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)
|
24 | 17 |
zip -d $(TMPDIR)/libmicroba-java-$(VERSION)/microba-$(VERSION)-sources.jar "lib-compiletime/*"
|
25 | 18 |
cd $(TMPDIR) && tar cfz libmicroba-java-$(VERSION).dfsg.tar.gz libmicroba-java-$(VERSION) && cd $(CURDIR)
|
26 | 19 |
mv $(TMPDIR)/libmicroba-java-$(VERSION).dfsg.tar.gz $(CURDIR)/../
|
0 | 0 |
# Compulsory line, this is a version 3 file
|
1 | 1 |
version=3
|
2 | 2 |
opts=dversionmangle=s/\.dfsg$// \
|
3 | |
http://sf.net/microba/microba-(.*)-full\.zip
|
4 | |
|
|
3 |
http://sf.net/microba/microba-(.*)-full\.zip debian echo
|