~ubuntu-branches/ubuntu/edgy/ant/edgy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Gybas
  • Date: 2002-02-14 14:28:48 UTC
  • Revision ID: james.westby@ubuntu.com-20020214142848-g5e3i1w44rn4kn60
Tags: 1.4.1-4
* Applied patch from Adam Heath to not follow symlinks during deletion
  (closes: #133291)
* Copy the Ant startup script to /usr/share/ant/bin/ant (closes: #133641)
* Provide the upstream chaneglog (WHATSNEW)
* The package can now be compiled with j2sdk1.3 1.3.1-1.1 (which has
  JAVA_HOME set to /usr/lib/j2se/1.3) and 1.3.1-1 (which has JAVA_HOME set
  to /usr/lib/j2sdk1.3).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# debian/rules file for ant (uses debhelper V3)
 
3
 
 
4
# Uncomment this to turn on verbose mode.
 
5
#export DH_VERBOSE=1
 
6
 
 
7
# This is the debhelper compatability version to use.
 
8
export DH_COMPAT=3
 
9
 
 
10
# The name of the source package and its version
 
11
#export SOURCE_PACKAGE = $(shell head -1 debian/changelog | cut -f1 -d" ")
 
12
#export SOURCE_VERSION = $(shell head -1 debian/changelog | cut -f2 -d\( | cut -f1 -d\))
 
13
 
 
14
# Directories to look for JAVA_HOME (JDK 1.2+ rquired!)
 
15
jdk_dirs:=/usr/lib/j2se/1.3 /usr/lib/j2sdk1.3
 
16
export JAVA_HOME=$(shell for jdir in $(jdk_dirs); do if [ -d "$$jdir" ]; then echo $$jdir; exit 0; fi; done)
 
17
 
 
18
 
 
19
build: build-stamp
 
20
build-stamp:
 
21
        dh_testdir
 
22
 
 
23
        /bin/sh bootstrap.sh
 
24
        mkdir build/manual
 
25
        mv build/javadocs build/manual/api
 
26
        touch build-stamp
 
27
 
 
28
clean:
 
29
        dh_testdir
 
30
        dh_testroot
 
31
        rm -rf build build-stamp
 
32
        dh_clean
 
33
 
 
34
install: build
 
35
        dh_testdir
 
36
        dh_testroot
 
37
        dh_clean -k
 
38
        dh_installdirs
 
39
        install -m644 build/lib/ant.jar debian/ant/usr/share/java/ant-1.4.1.jar
 
40
        install -m644 build/lib/optional.jar debian/ant/usr/share/java/ant-1.4.1-optional.jar
 
41
        install -m755 src/script/antRun debian/ant/usr/share/ant/bin/antRun
 
42
        install -m755 debian/ant.bin debian/ant/usr/share/ant/bin/ant
 
43
 
 
44
 
 
45
# Build architecture-independent files here.
 
46
binary-indep: build install
 
47
        dh_testdir
 
48
        dh_testroot
 
49
#       dh_installdebconf       
 
50
        dh_installdocs
 
51
        rm debian/ant-doc/usr/share/doc/ant-doc/manual/LICENSE
 
52
        ln -s ../copyright debian/ant-doc/usr/share/doc/ant-doc/manual/LICENSE
 
53
        dh_installexamples
 
54
        dh_installmenu
 
55
#       dh_installemacsen
 
56
#       dh_installpam
 
57
#       dh_installinit
 
58
#       dh_installcron
 
59
        dh_installman
 
60
#       dh_installinfo
 
61
#       dh_undocumented
 
62
        dh_installchangelogs WHATSNEW
 
63
        dh_link
 
64
        dh_compress
 
65
        dh_fixperms
 
66
        dh_installdeb
 
67
#       dh_perl
 
68
        dh_gencontrol
 
69
        dh_md5sums
 
70
        dh_builddeb
 
71
 
 
72
# Build architecture-dependent files here.
 
73
binary-arch: build install
 
74
# We have nothing to do here
 
75
 
 
76
binary: binary-indep binary-arch
 
77
.PHONY: build clean binary-indep binary-arch binary install