]> err.no Git - yubikey-personalization.old/commitdiff
add gitpkg hook
authorTollef Fog Heen <tfheen@err.no>
Sat, 5 Sep 2009 09:54:04 +0000 (11:54 +0200)
committerTollef Fog Heen <tfheen@err.no>
Sat, 30 Jan 2010 12:40:48 +0000 (12:40 +0000)
debian/gitpkg-hook.sh [new file with mode: 0755]

diff --git a/debian/gitpkg-hook.sh b/debian/gitpkg-hook.sh
new file mode 100755 (executable)
index 0000000..fdda00b
--- /dev/null
@@ -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})