summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-06-23 13:06:38 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-06-23 13:12:39 (EDT)
commitfd38aa5bd293cefecc8962dcc75357bcdb6060f1 (patch)
treef21b802f539baee16748239c9354b8689259aadf /release
parent0fc21fe42712b3a203f25e1369b00a52690099f2 (diff)
Individual commits lost: e09d864 changelog: Release libsigsegv 2.12-1 9444115 release: New script (copied from gcc-8) 3295988 copyright: Update 2049433 libsigsegv.2: Use oh-shlibdeps 74a1035 libsigsegv-dev: Remove static library abc2b1d source.mk: Rewrite/update 8ba20bb keyring.gpg: Exclude from Git a5a1378 control: Update Maintainer 83037f3 changelog: New upstream version
Diffstat (limited to 'release')
-rwxr-xr-xrelease13
1 files changed, 13 insertions, 0 deletions
diff --git a/release b/release
new file mode 100755
index 0000000..871cb4a
--- /dev/null
+++ b/release
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -eu
+
+read src ver <<-EOF
+ $(sed '1s/^\(.*\) (\(.*\)) .*$/\1 \2/; q;' changelog)
+ EOF
+
+sed '/^ -- .* /{ s/^\( -- .* \).*$/\1'"$(LC_ALL='POSIX' date \
+ '+%a, %d %b %Y %H:%M:%S %z')"'/; :l; n; b l; };' changelog >changelog~
+mv changelog~ changelog
+git commit -m "changelog: Release ${src} ${ver}" -- changelog
+git tag "${src}/${ver}" HEAD