This is an automated email from the git hooks/post-receive script.

diane-guest pushed a commit to branch master
in repository libcofoja-java.

commit 8df844d16d23abbd5ac70961c5ccd02d2329d6cf
Author: Diane Trout <[email protected]>
Date:   Tue Mar 11 15:11:33 2014 -0700

    Cofoja needs a bootstrap build to annotate its jars with its contract 
feature.
    
    This updates the rules files to build the bootstrap version and
    put it where ant can find it.
    
    And once its built we can then run tests to try and check that things
    are working.
---
 debian/rules | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/debian/rules b/debian/rules
index c615a4e..ffb077b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,9 +2,26 @@
 
 # DH_VERBOSE := 1
 
+DEB_VERSION := $(shell dpkg-parsechangelog --show-field Version)
+VERSION := $(firstword $(subst -, ,${DEB_VERSION}))
+
 %:
        dh $@ --with javahelper
 
 get-orig-source:
        mkdir -p ../tarballs
        uscan --verbose --force-download --destdir ../tarballs
+
+override_dh_auto_build:
+       # build unannotated cofoja library
+       ant
+       mv dist/cofoja-${VERSION}.jar build/bootstrap.jar
+       # rebuild using the library.
+       dh_auto_build
+
+override_dh_auto_clean:
+       rm build/bootstrap.jar
+       dh_auto_clean
+
+override_dh_auto_test:
+       ant test
\ No newline at end of file

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/debian-med/libcofoja-java.git

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

Reply via email to