File: rules

package info (click to toggle)
starjava-votable 2.0%2B2021.01.10-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 1,168 kB
  • sloc: java: 11,937; xml: 661; makefile: 17
file content (22 lines) | stat: -rwxr-xr-x 797 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f

%:
	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/votable starjava-votable ; \
	wget -nv https://github.com/Starlink/starjava/raw/master/LICENSE.txt -P starjava-votable ; \
	VERSION=`xmllint --xpath '//project/property[@name="version"]/@value' starjava-votable/build.xml | cut -d\" -f2| tr - .` ; \
	DATE=`stat -c %y starjava-votable/src/main/uk/ac/starlink/votable/*.java | cut -c-10 | sort|uniq|tail -1| tr - .`; \
	tar cf starjava-votable_$$VERSION+$$DATE.orig.tar starjava-votable ; \
	rm -rf starjava-votable ; \
	xz starjava-votable_$$VERSION+$$DATE.orig.tar