[jlm] 03/16: d/rules: add a get-orig-source target that prunes unused binary jarfiles
Martin Quinson
mquinson at alioth.debian.org
Mon Aug 12 19:51:22 UTC 2013
This is an automated email from the git hooks/post-receive script.
mquinson pushed a commit to branch debian-debian
in repository jlm.
commit 3d721bcd0e8b6e2b21347a10c715d34f9ecafa6e
Author: Martin Quinson <martin.quinson at loria.fr>
Date: Mon Aug 12 00:06:17 2013 +0200
d/rules: add a get-orig-source target that prunes unused binary jarfiles
---
debian/changelog | 4 +++-
debian/rules | 16 ++++++++++++++++
2 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index f12f34b..054179c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,10 +1,12 @@
-jlm (2.0-1) UNRELEASED; urgency=low
+jlm (2.0+repack-1) UNRELEASED; urgency=low
* New upstream release.
- Refresh our patches.
* d/p/review-french: integrate a post-release upstream patch that
greatly improve the french translations
* Add a watch file.
+ * d/rules: add a get-orig-source target that prunes the binary
+ jarfiles of all our dependencies. We don't use them in Debian anyway.
-- Martin Quinson <mquinson at debian.org> Sun, 04 Aug 2013 23:29:19 +0200
diff --git a/debian/rules b/debian/rules
index 06ce088..df523e9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -66,3 +66,19 @@ override_dh_auto_install:
install -d -m 755 $(DESTDIR)/usr/bin
cp debian/jlm.sh $(DESTDIR)/usr/bin/jlm
chmod 755 $(DESTDIR)/usr/bin/jlm
+
+version=$(shell uscan --report-status | head -2 | tail -1 | cut -d' ' -f7 | cut -d, -f1)
+tmpdir:=$(shell mktemp -d)
+wrkdir:=$(shell pwd)
+
+get-orig-source:
+ rm -f ${wrkdir}/../jlm_${version}+repack.orig.tar.gz
+ rm -f ${wrkdir}/../jlm_${version}.orig.tar.gz
+ uscan --verbose --force-download && cp ../${version}.tar.gz ${tmpdir} || true
+ set +ex; cd ${tmpdir} && \
+ tar xf ${version}.tar.gz && rm -f ${version}.tar.gz && \
+ cd JLM-${version} && find lib -name '*.jar' | xargs rm && \
+ tar cf ${wrkdir}/../jlm_${version}+repack.orig.tar * ; \
+ gzip --best ${wrkdir}/../jlm_${version}+repack.orig.tar
+ rm -rf ${tmpdir}
+ @echo "successfully created new tarball: ${wrkdir}/../jlm_${version}+repack.orig.tar.gz"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jlm.git
More information about the pkg-java-commits
mailing list