File: rules

package info (click to toggle)
starjava-vo 0.2%2B2022.08.12-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,812 kB
  • sloc: java: 19,802; xml: 1,322; makefile: 19
file content (25 lines) | stat: -rwxr-xr-x 828 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

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

%:
	dh $@ --with javahelper

override_dh_auto_build:
	ant jars
	ant javadocs

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	ant test -Djava.awt.headless=true
endif

get-orig-source:
	svn export https://github.com/Starlink/starjava/trunk/vo starjava-vo ; \
	wget -nv https://github.com/Starlink/starjava/raw/master/LICENSE.txt -P starjava-vo ; \
	VERSION=`xmllint --xpath '//project/property[@name="version"]/@value' starjava-vo/build.xml | cut -d\" -f2| tr - .` ; \
	DATE=`stat -c %y starjava-vo/src/main/uk/ac/starlink/vo/*.java | cut -c-10 | sort|uniq|tail -1| tr - .`; \
	rm -f starjava-vo/src/lib/*.jar ; \
	tar cf starjava-vo_$$VERSION+$$DATE.orig.tar starjava-vo ; \
	rm -rf starjava-vo ; \
	xz starjava-vo_$$VERSION+$$DATE.orig.tar