[SCM] Debian packaging for sketch 3D line drawing software branch, master, updated. debian/0.2.183-1
David Bremner
bremner at unb.ca
Thu Dec 16 14:46:25 UTC 2010
The following commit has been merged in the master branch:
commit 47577959bec86d7f48451dc804a16216f8f6b97b
Author: David Bremner <bremner at unb.ca>
Date: Thu Dec 16 09:46:26 2010 -0400
commit patch export helper script
diff --git a/debian/export-patches.sh b/debian/export-patches.sh
new file mode 100644
index 0000000..39d2255
--- /dev/null
+++ b/debian/export-patches.sh
@@ -0,0 +1,19 @@
+# export patches from a tag named after the Debian Version
+# To use as a hook in gitpkg,
+# git config gitpkg.deb-export-hook debian/export-patches.sh
+
+PATCH_TAG=patches/$(dpkg-parsechangelog | sed -n 's/^Version: \(.*:\|\)\(.*\)/\2/p')
+
+export GIT_DIR
+if [ -n "$REPO_DIR" ]; then
+ GIT_DIR=$REPO_DIR/.git
+fi;
+
+if git rev-parse ${PATCH_TAG} >/dev/null 2>&1; then
+ echo exporting patches from ${PATCH_TAG}
+ rm -rf debian/patches
+ PATCHES=`git format-patch -N -o debian/patches HEAD...$PATCH_TAG`
+ echo $PATCHES | sed -e 's%debian/patches/%%g' -e 's% %\n%g'> debian/patches/series
+else
+ echo No patch tag/branch ${PATCH_TAG};
+fi
--
Debian packaging for sketch 3D line drawing software
More information about the debian-science-commits
mailing list