#!/usr/bin/make -f #export DH_VERBOSE=1 # needed for latex2html export TEXINPUTS=`pwd`/latex # see https://tests.reproducible-builds.org/debian/issues/unstable/timestamps_in_ps_generated_by_dvips_issue.html export FORCE_SOURCE_DATE := 1 %: dh $@ --no-parallel # check result manually! update-copyright: LICENSE manuals/en/main/coverpage.tex debian/template.copyright cp debian/template.copyright debian/copyright # take copyright and dates from the coverpage cat manuals/en/main/coverpage.tex | grep -i copyright | sed 's/{\\textcopyright}/(c)/' | sed 's/^[[:space:]]*//' | tr -d '\\' >> debian/copyright echo "\nLicense:" >> debian/copyright # add the license file cat LICENSE >> debian/copyright # remove trailing whitespaces wrap-and-sort -f debian/copyright