#!/usr/bin/make -f %: dh $@ --with javahelper override_dh_auto_build: ant jars ant javadocs ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) override_dh_auto_test: ant test endif get-orig-source: svn export https://github.com/Starlink/starjava/trunk/tfcat starjava-tfcat ; \ wget -nv https://github.com/Starlink/starjava/raw/master/LICENSE.txt -P starjava-tfcat ; \ VERSION=`xmllint --xpath '//project/property[@name="version"]/@value' starjava-tfcat/build.xml | cut -d\" -f2| tr - .| tr -d +` ; \ DATE=`stat -c %y starjava-tfcat/src/main/uk/ac/starlink/*/*.java | cut -c-10 | sort|uniq|tail -1| tr - .`; \ tar cf starjava-tfcat_$$VERSION+$$DATE.orig.tar starjava-tfcat ; \ rm -rf starjava-tfcat ; \ xz starjava-tfcat_$$VERSION+$$DATE.orig.tar