File: rules

package info (click to toggle)
jtreg6 6.1%2B2-1~deb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,636 kB
  • sloc: java: 29,778; sh: 1,505; xml: 674; makefile: 260
file content (30 lines) | stat: -rwxr-xr-x 1,211 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/make -f

JAVA_HOME = /usr/lib/jvm/default-java

# version string has the form 6.1+N-D, the Debian release is not passed into the build
VERSION      := $(shell dpkg-parsechangelog --show-field Version | sed 's/+.*//')
BUILD_NUMBER := $(shell dpkg-parsechangelog --show-field Version | sed 's/.*+\([0-9]*\).*/\1/')
DATE         := $(shell dpkg-parsechangelog --show-field Date)

%:
	dh $@ --with javahelper

override_dh_auto_build:
	ant -f make/build.xml \
	    -Dant.jar=/usr/share/java/ant.jar \
	    -Djtreg.build.resources=/usr/share/java \
	    -Djh.jar=/usr/share/java/jh.jar \
	    -Djhall.jar=/usr/share/java/jhall.jar \
	    -Djunit.jar=/usr/share/java/junit4.jar \
	    -Dtestng.jar=/usr/share/java/testng.jar \
	    -Djavatest.jar=/usr/share/java/javatest.jar \
	    -Dbuild.date.time='$(DATE)' \
	    -Dbuild.version=$(VERSION) \
	    -Dbuild.milestone=src \
	    -Dbuild.number=$(BUILD_NUMBER)
	dh_auto_build

	# Generate the manpages
	JT_HOME=./dist/jtreg/lib/ help2man --name="Regression Test Harness" --help-option="-help all" dist/jtreg/bin/jtdiff > jtdiff.1
	JT_HOME=./dist/jtreg/lib/ help2man --name="Regression Test Harness" --help-option="-help all" dist/jtreg/bin/jtreg > jtreg.1