summaryrefslogtreecommitdiff
path: root/bin/sourel
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sourel')
-rwxr-xr-xbin/sourel22
1 files changed, 22 insertions, 0 deletions
diff --git a/bin/sourel b/bin/sourel
new file mode 100755
index 00000000..4b8c0e97
--- /dev/null
+++ b/bin/sourel
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+# post-NEW source-only uploads
+
+set -e
+
+if ! git is-clean; then
+ echo >&2 "must commit first"
+ exit 1
+fi
+
+if [ "$(dpkg-parsechangelog -SDistribution)" = UNRELEASED ]; then
+ echo >&2 "there are unreleased changes?"
+ exit 1
+fi
+
+debchange --no-auto-nmu Source-only upload.
+debchange --release
+git commit debian/changelog -m"Source-only upload"
+
+origtargz
+exec debrel "$@"