File: rules

package info (click to toggle)
starjava-topcat 4.8-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 24,484 kB
  • sloc: java: 70,029; xml: 30,718; sh: 72; makefile: 16
file content (21 lines) | stat: -rwxr-xr-x 863 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

%:
	dh $@ --with javahelper 

override_dh_auto_build:
	ant jars
	ant javadocs

override_dh_auto_test:
	ant test -Drunonly.install=true -Ddocs.notrequired=true -Djunit.present=true -Djava.awt.headless=true

get-orig-source:
	TAG=`svn ls https://github.com/Starlink/starjava/tags |egrep ^topcat-[1-9]| tail -1 | cut -d/ -f1` ; \
	svn export https://github.com/Starlink/starjava/tags/$$TAG/topcat starjava-$$TAG ; \
	wget -nv https://github.com/Starlink/starjava/raw/master/LICENSE.txt -P starjava-$$TAG ; \
	VERSION=`xmllint --xpath '//project/property[@name="version"]/@value' starjava-$$TAG/build.xml | cut -d\" -f2| tr - .| tr  - . | tr -d +` ; \
	rm -rf starjava-$$TAG/src/lib/* starjava-$$TAG/src/docs/*.jar ; \
	tar cf starjava-topcat_$$VERSION.orig.tar starjava-$$TAG ; \
	rm -rf starjava-$$TAG ; \
	xz starjava-topcat_$$VERSION.orig.tar