From 91d7bdbeaf166ac9bdb2fba0552f7737bff98123 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Fri, 23 Oct 2009 08:06:47 +0200 Subject: [PATCH] Add gitpkg hook --- debian/gitpkg-hook.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 debian/gitpkg-hook.sh diff --git a/debian/gitpkg-hook.sh b/debian/gitpkg-hook.sh new file mode 100755 index 0000000..910d685 --- /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). +set -x +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}) -- 2.39.5