File: rules

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

export JAVA_HOME=/usr/lib/jvm/default-java

%:
	dh $@ --with javahelper

override_dh_auto_build:
	ant jars
	ant javadocs

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