File: rules

package info (click to toggle)
starjava-pal 1.0.1%2B2020.10.01-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 516 kB
  • sloc: java: 4,416; xml: 414; 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