File: rules

package info (click to toggle)
starjava-table 3.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,560 kB
  • sloc: java: 26,746; xml: 480; makefile: 18; sh: 10
file content (23 lines) | stat: -rwxr-xr-x 844 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
22
23
#!/usr/bin/make -f

%:
	dh $@ --with javahelper

override_dh_auto_build:
	ant jars
	ant javadocs

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	ant test -Djava.awt.headless=true
endif

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