~ubuntu-branches/ubuntu/raring/apgdiff/raring

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Berg
  • Date: 2010-10-11 09:08:18 UTC
  • mfrom: (2.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20101011090818-sdw8yfemrnxo328k
Tags: 2.2.2-1
* New upstream version.
* Using changelog included in zipfile, thanks Miroslav for providing this.
* Update manpage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
build-stamp: $(QUILT_STAMPFN)
11
11
        ant -Dnoget=1 jar
12
12
        a2x -f manpage debian/apgdiff.1.txt
 
13
        
 
14
        # setting up test suite
 
15
        -mkdir lib
 
16
        cp /usr/share/java/junit4.jar lib/junit.jar
 
17
        cp -a /usr/share/java/hamcrest-* lib
 
18
        ant -Dnoget=1 compile-tests
 
19
        ant -Dnoget=1 test
13
20
        touch $@
14
21
 
15
22
install: build-stamp
22
29
 
23
30
binary binary-indep: install
24
31
 
25
 
test:
26
 
        -mkdir lib
27
 
        # This needs an updated junit in Debian:
28
 
        #ant -Dnoget=1 compile-tests
29
 
        #ant -Dnoget=1 test
30
 
        ant compile-tests
31
 
        ant test
32
 
 
33
32
clean: unpatch
34
33
        ant -Dnoget=1 clean
35
34
        rm -f src/main/resources/cz/startnet/utils/pgdiff/usage.xml
39
38
%:
40
39
        dh $@
41
40
 
42
 
.PHONY: build build-arch build-indep clean
 
41
origtgz: unpatch
 
42
        test ! -e ../apgdiff_$(VERSION).orig.tar.gz
 
43
        test ! -d ../orig/apgdiff-$(VERSION)
 
44
        mkdir -p ../orig/apgdiff-$(VERSION)
 
45
        cp -a * ../orig/apgdiff-$(VERSION)
 
46
        rm -rf ../orig/apgdiff-$(VERSION)/debian
 
47
        find ../orig/apgdiff-$(VERSION) -name .svn | xargs -r rm -rf
 
48
        cd ../orig && tar -czf ../apgdiff_$(VERSION).orig.tar.gz apgdiff-$(VERSION)
 
49
        rm -rf ../orig/apgdiff-$(VERSION)
 
50
        rmdir ../orig
 
51
 
 
52
.PHONY: build build-arch build-indep clean origtgz