File: rules

package info (click to toggle)
starjava-dpac 1.0%2B2021.01.08-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 424 kB
  • sloc: java: 2,250; xml: 427; makefile: 17; sh: 10
file content (22 lines) | stat: -rwxr-xr-x 750 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
#!/usr/bin/make -f

%:
	dh $@ --with javahelper

override_dh_auto_build:
	ant jars
	ant javadocs

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
	ant test
endif

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