[pkg-java] r12418 - trunk/libbtm-java/debian

Torsten Werner twerner at alioth.debian.org
Sat May 15 17:26:29 UTC 2010


Author: twerner
Date: 2010-05-15 17:26:28 +0000 (Sat, 15 May 2010)
New Revision: 12418

Modified:
   trunk/libbtm-java/debian/rules
Log:
install pom and jar


Modified: trunk/libbtm-java/debian/rules
===================================================================
--- trunk/libbtm-java/debian/rules	2010-05-15 11:27:20 UTC (rev 12417)
+++ trunk/libbtm-java/debian/rules	2010-05-15 17:26:28 UTC (rev 12418)
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+VERSION = $(shell dpkg-parsechangelog | sed -n 's,^Version: \(.*\)-.*,\1,p')
+
 export JAVA_HOME := /usr/lib/jvm/java-gcj/
 
 D := /usr/share/java/
@@ -9,7 +11,11 @@
 	dh $@
 
 override_dh_auto_build:
-	ant
+	ant -Djar.version=$(VERSION)
 
+override_dh_auto_install:
+	mh_installpom -plibbtm-java -e$(VERSION) pom.xml
+	mh_installjar -plibbtm-java -l -e$(VERSION) pom.xml dist/btm-$(VERSION).jar
+
 get-orig-source:
-	uscan --force-download --rename
+	uscan --force-download --download-version $(VERSION) --rename




More information about the pkg-java-commits mailing list