summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdebian/do-dch30
1 files changed, 30 insertions, 0 deletions
diff --git a/debian/do-dch b/debian/do-dch
new file mode 100755
index 000000000..cf3a89a84
--- /dev/null
+++ b/debian/do-dch
@@ -0,0 +1,30 @@
+#!/bin/sh
+# This runs git-dch with appropriate options.
+#
+# All given options are handed over to git-dch without tampering. You
+# should probably give a --since="..." definition, so the program knows
+# were to start. Also, when you're planning on a release, pass `-R'. For
+# snapshots, use `-S'.
+#
+# This script also takes care of weeding out [dch-ignore] lines from the
+# generated changelog.
+#
+# At the end an editor is spawned on debian/changelog no matter what.
+
+git-dch \
+ --debian-branch=debian \
+ --id-length=8 \
+ --multimaint-merge \
+ --upstream-tag='zsh-%(version)' \
+ --spawn-editor=never \
+ "$@"
+
+old="debian/changelog.old"
+cl="debian/changelog"
+
+rm -f "$old"
+cp "$cl" "$old"
+sed -e '/^ \* \[[a-f0-9]*\] \[dch-ignore\] /d' < "$old" > "$cl"
+rm -f "$old"
+
+${VISUAL:-${EDITOR:-vi}} "$cl"