[pkg-java] r2806 - branches/commons-daemon/feature/debian/debian

Marcus Better marcusb-guest at alioth.debian.org
Wed Nov 29 10:44:16 CET 2006


Author: marcusb-guest
Date: 2006-11-29 10:44:16 +0100 (Wed, 29 Nov 2006)
New Revision: 2806

Removed:
   branches/commons-daemon/feature/debian/debian/libcommons-daemon-java.links
Modified:
   branches/commons-daemon/feature/debian/debian/rules
Log:
Create symlink to jar file dynamically in debian/rules, so the version doesn't have to be bumped for every release.


Deleted: branches/commons-daemon/feature/debian/debian/libcommons-daemon-java.links
===================================================================
--- branches/commons-daemon/feature/debian/debian/libcommons-daemon-java.links	2006-11-29 09:40:19 UTC (rev 2805)
+++ branches/commons-daemon/feature/debian/debian/libcommons-daemon-java.links	2006-11-29 09:44:16 UTC (rev 2806)
@@ -1 +0,0 @@
-usr/share/java/commons-daemon-1.0.1.jar usr/share/java/commons-daemon.jar

Modified: branches/commons-daemon/feature/debian/debian/rules
===================================================================
--- branches/commons-daemon/feature/debian/debian/rules	2006-11-29 09:40:19 UTC (rev 2805)
+++ branches/commons-daemon/feature/debian/debian/rules	2006-11-29 09:44:16 UTC (rev 2806)
@@ -18,7 +18,9 @@
 		org.apache.tools.ant.Main $(ANT_ARGS)
 
 PKGNAME		:= commons-daemon
-VERSION		:= $(shell head -1 debian/changelog | cut -f2 -d\( | cut -f1 -d\) | cut -f1 -d\-)
+INSTALLDIR	:= $(CURDIR)/debian/lib$(PKGNAME)-java
+JAVALIBDIR	:= $(INSTALLDIR)/usr/share/java
+VERSION		:= $(shell head -1 debian/changelog | cut -f2 -d\( | cut -f1 -d\) | cut -f1 -d\- | cut -f1 -d\~)
 
 NATIVE_SRC	:= src/native/unix
 
@@ -74,6 +76,7 @@
 	dh_installdirs -i
 	dh_install -i
 	install -m 644 dist/$(PKGNAME).jar $(JAVALIBDIR)/$(PKGNAME)-$(VERSION).jar
+	ln -s $(PKGNAME)-$(VERSION).jar $(JAVALIBDIR)/$(PKGNAME).jar
 
 install-arch: build-arch
 	dh_testdir




More information about the pkg-java-commits mailing list