#!/usr/bin/make -f %: dh $@ --with javahelper override_dh_auto_build: ant jars ant javadocs || true ant docs override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) ant test -Djava.awt.headless=true # linkchecker build/docs/sun256/index.html endif get-orig-source: git clone --filter=blob:none --sparse --single-branch --branch master \ https://github.com/Starlink/starjava \ starjava-repo cd starjava-repo; \ TAG=`git tag --list stilts-\* --sort=creatordate |tail -1` ;\ git switch --detach $$TAG ; \ git sparse-checkout add ttools mv starjava-repo/ttools starjava-ttools mv starjava-repo/LICENSE.txt starjava-ttools rm -rf starjava-repo VERSION=`xmllint --xpath '//project/property[@name="version"]/@value' starjava-ttools/build.xml | cut -d\" -f2| tr - .| tr - . | tr -d +` ; \ rm -rf starjava-ttools/src/lib/* starjava-ttools/src/docs/*.jar ; \ rm -rf starjava-ttools/src/testlib/*.jar ; \ tar cf starjava-ttools_$$VERSION.orig.tar starjava-ttools ; \ rm -rf starjava-ttools ; \ xz starjava-ttools_$$VERSION.orig.tar