From: Tollef Fog Heen Date: Sat, 5 Sep 2009 09:54:04 +0000 (+0200) Subject: add gitpkg hook X-Git-Tag: yubikey-personalisation_1.3.1-1~10 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4af4f8c86941c6ef330d06b2a86ce3ba123f2f2f;p=yubikey-personalization.old add gitpkg hook --- diff --git a/debian/gitpkg-hook.sh b/debian/gitpkg-hook.sh new file mode 100755 index 0000000..fdda00b --- /dev/null +++ b/debian/gitpkg-hook.sh @@ -0,0 +1,9 @@ +#! /bin/sh +# This file is used by gitpkg to extract a byte identical .orig.tar.gz +# file using pristine-tar. To use it you need pristine-tar, and to +# configure HOOK_FILE=debian/gitpkg-hook.sh in one of the places that +# gitpkg looks (currently _not_ the environment). + +ORIGTGZ="${DEB_DIR}/${DEB_SOURCE}/${DEB_SOURCE}_${DEB_VERSION%-*}.orig.tar.gz" +echo "(cd $REPO_ROOT && pristine-tar checkout ${ORIGTGZ})" +(cd $REPO_ROOT && pristine-tar checkout ${ORIGTGZ})