File: rules

package info (click to toggle)
starjava-registry 1.2%2B2020.10.01-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 332 kB
  • sloc: java: 1,028; xml: 428; makefile: 13
file content (17 lines) | stat: -rwxr-xr-x 704 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

%:
	dh $@ --with javahelper

override_dh_auto_build:
	ant jars
	ant javadocs

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