File: rules

package info (click to toggle)
starjava-pal 1.0.1%2B2016.08.11-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 516 kB
  • ctags: 414
  • sloc: java: 4,416; xml: 413; makefile: 13
file content (17 lines) | stat: -rwxr-xr-x 655 bytes parent folder | download | duplicates (2)
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/pal starjava-pal ; \
	wget -nv https://github.com/Starlink/starjava/raw/master/LICENSE.txt -P starjava-pal ; \
	VERSION=`xmllint --xpath '//project/property[@name="version"]/@value' starjava-pal/build.xml | cut -d\" -f2| tr - .| tr -d +` ; \
	DATE=`stat -c %y starjava-pal/src/main/uk/ac/starlink/pal/*.java | cut -c-10 | sort|uniq|tail -1| tr - .`; \
	tar cf starjava-pal_$$VERSION+$$DATE.orig.tar starjava-pal ; \
	rm -rf starjava-pal ; \
	xz starjava-pal_$$VERSION+$$DATE.orig.tar