Author: tille
Date: 2012-04-20 08:31:50 +0000 (Fri, 20 Apr 2012)
New Revision: 10453

Modified:
   trunk/packages/king/trunk/debian/rules
Log:
Enable building twice in a row


Modified: trunk/packages/king/trunk/debian/rules
===================================================================
--- trunk/packages/king/trunk/debian/rules      2012-04-20 08:12:19 UTC (rev 
10452)
+++ trunk/packages/king/trunk/debian/rules      2012-04-20 08:31:50 UTC (rev 
10453)
@@ -8,6 +8,12 @@
        dh $@ --with javahelper
 
 override_dh_auto_build:
+       # create backups of original buildnum resources to enable building 
twice in a row
+       for component in chiropraxis driftwood extratools king molikin ; do \
+         if [ -e $$component/resource/$$component/buildnum.props ] ; then \
+           cp -a $$component/resource/$$component/buildnum.props 
$$component/resource/$$component/buildnum.props.orig ; \
+         fi ; \
+       done
        ant -buildfile king/build.xml
 
 override_dh_auto_clean:
@@ -17,3 +23,11 @@
        ant -buildfile extratools/build.xml clean
        ant -buildfile molikin/build.xml clean
        rm -rf king_jar
+
+       # restore backups of original buildnum resources to enable building 
twice in a row
+       for component in chiropraxis driftwood extratools king molikin ; do \
+         rm -rf $$component/resource/$$component/buildnum.props ; \
+         if [ -e $$component/resource/$$component/buildnum.props.orig ] ; then 
\
+           mv $$component/resource/$$component/buildnum.props.orig 
$$component/resource/$$component/buildnum.props ; \
+         fi ; \
+       done


_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to