[pkg-java] r10320 - trunk/libjgraph-java/trunk/debian
Steffen Möller
moeller at alioth.debian.org
Mon Sep 7 21:55:05 UTC 2009
Author: moeller
Date: 2009-09-07 21:55:05 +0000 (Mon, 07 Sep 2009)
New Revision: 10320
Modified:
trunk/libjgraph-java/trunk/debian/copyright
trunk/libjgraph-java/trunk/debian/rules
Log:
added get-orig-source
Modified: trunk/libjgraph-java/trunk/debian/copyright
===================================================================
--- trunk/libjgraph-java/trunk/debian/copyright 2009-09-07 20:25:22 UTC (rev 10319)
+++ trunk/libjgraph-java/trunk/debian/copyright 2009-09-07 21:55:05 UTC (rev 10320)
@@ -1,7 +1,7 @@
This package was debianized by Steffen Moeller <moeller at debian.org> on
Mon, 07 Sep 2009 18:54:23 +0200
-It was downloaded from http://www.jgraph.com/pub//jgraph-latest-lgpl-src.jar
+It was downloaded from http://www.jgraph.com/pub/jgraph-latest-lgpl-src.jar
Upstram Author: Gaudenz Alde <sales at jgraph.com>
Modified: trunk/libjgraph-java/trunk/debian/rules
===================================================================
--- trunk/libjgraph-java/trunk/debian/rules 2009-09-07 20:25:22 UTC (rev 10319)
+++ trunk/libjgraph-java/trunk/debian/rules 2009-09-07 21:55:05 UTC (rev 10320)
@@ -13,3 +13,16 @@
install/libjgrapht-java::
dh_link -p libjgraph-java /usr/share/java/jgraph-$(DEB_UPSTREAM_VERSION).jar /usr/share/java/jgraph.jar
+
+UPSTREAM_URL=http://www.jgraph.com/pub//jgraph-latest-lgpl-src.jar
+
+get-orig-source:
+ wget -O ../libjgraph-java-$(DEB_UPSTREAM_VERSION).jar $(UPSTREAM_URL)
+ if [ -d "../libjgraph-java-$(DEB_UPSTREAM_VERSION)" ]; then rm -r "../libjgraph-java-$(DEB_UPSTREAM_VERSION)"; fi
+ mkdir "../libjgraph-java-$(DEB_UPSTREAM_VERSION)"
+ cd "../libjgraph-java-$(DEB_UPSTREAM_VERSION)" && jar xf ../libjgraph-java-$(DEB_UPSTREAM_VERSION).jar
+ rm -f "../libjgraph-java-$(DEB_UPSTREAM_VERSION)"/lib/jgraph.jar
+ cd .. && GZIP=-9 tar --exclude doc -czf libjgraph-java_$(DEB_UPSTREAM_VERSION).orig.tar.gz libjgraph-java-$(DEB_UPSTREAM_VERSION)
+ echo " * cleaning up"
+ rm ../libjgraph-java-$(DEB_UPSTREAM_VERSION).jar
+ rm -r "../libjgraph-java-$(DEB_UPSTREAM_VERSION)"
More information about the pkg-java-commits
mailing list