[sagemath] 03/03: Add script to help with patch upstreaming
Ximin Luo
infinity0 at debian.org
Sat Mar 11 15:16:06 UTC 2017
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository sagemath.
commit c97c14b74fd59738884797cc60514341c07dd40f
Author: Ximin Luo <infinity0 at debian.org>
Date: Sat Mar 11 16:15:44 2017 +0100
Add script to help with patch upstreaming
---
debian/reformat-patch-for-git-am.sh | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/debian/reformat-patch-for-git-am.sh b/debian/reformat-patch-for-git-am.sh
new file mode 100755
index 0000000..c1f6ab0
--- /dev/null
+++ b/debian/reformat-patch-for-git-am.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+# Hacky script to make it easier to forward our patches upstream, using git-am
+sed \
+ -e 's/^Description: /Subject: /g' \
+ -e 's/^Author: /From: /g' \
+ -e '/^Forwarded: /d' \
+ -e 's,^--- a/sage/,--- a/,g' \
+ -e 's,^+++ b/sage/,+++ b/,g' \
+ -e '/^---$/d' \
+ -e '/^This patch header follows DEP-3/d' \
+ "$1"
+echo >&2 "You will still need to edit extended Description stanzas to put them after the"
+echo >&2 "email headers, separated by 1 blank line, and de-indent them by 1 space."
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagemath.git
More information about the debian-science-commits
mailing list