[guice] 09/12: Use a loop to build the extensions
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Thu Oct 9 15:15:40 BST 2014
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository guice.
commit 4d16d429ed502214547bea6e9cd673bab6becbd2
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Thu Oct 9 15:35:55 2014 +0200
Use a loop to build the extensions
---
debian/rules | 26 ++++++++++----------------
1 file changed, 10 insertions(+), 16 deletions(-)
diff --git a/debian/rules b/debian/rules
index 4063f90..07f2184 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,8 @@
export JAVA_HOME=/usr/lib/jvm/default-java
VERSION := \$(shell dpkg-parsechangelog | grep ^Version: | sed -r 's/^.*:\ (.*)-.*$$/\1/')
+EXTENSIONS = assistedinject servlet multibindings grapher jmx jndi throwingproviders
+
%:
dh $@ --with javahelper
@@ -20,31 +22,23 @@ override_dh_auto_build:
dh_auto_build
ant -Dversion=$(VERSION) jar javadoc
- # build assistedinject extension
- cd extensions/assistedinject && ant -Dversion=$(VERSION) jar
- cd extensions/servlet && ant -Dversion=$(VERSION) jar
- cd extensions/multibindings && ant -Dversion=$(VERSION) jar
- cd extensions/grapher && ant -Dversion=$(VERSION) jar
- cd extensions/jmx && ant -Dversion=$(VERSION) jar
- cd extensions/jndi && ant -Dversion=$(VERSION) jar
- cd extensions/throwingproviders && ant -Dversion=$(VERSION) jar
+ # build the extensions
+ for extension in $(EXTENSIONS) ; do \
+ ant -f extensions/$$extension/build.xml -Dversion=$(VERSION) jar ; \
+ done
override_dh_auto_install:
dh_auto_install
- mh_install -plibguice-java -v --set-version=$(VERSION)
+ mh_install -plibguice-java --set-version=$(VERSION)
override_dh_auto_clean:
dh_auto_clean
# remove the symbolic links
rm -f lib/*.jar lib/build/*.jar
# clean extensions build files
- cd extensions/assistedinject && ant clean
- cd extensions/servlet && ant clean
- cd extensions/multibindings && ant clean
- cd extensions/grapher && ant clean
- cd extensions/jmx && ant clean
- cd extensions/jndi && ant clean
- cd extensions/throwingproviders && ant clean
+ for extension in $(EXTENSIONS) ; do \
+ ant -f extensions/$$extension/build.xml clean ; \
+ done
mh_clean
override_dh_compress:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/guice.git
More information about the pkg-java-commits
mailing list