diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2021-01-07 03:37:07 (EST) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2021-01-07 03:46:03 (EST) |
commit | c54bde733f21afeab9fbc3ea17f355489767bb83 (patch) | |
tree | 2d2b90fa4994f74b5b9cbf8075b97f464aa6faa9 /release |
Initial commit
Diffstat (limited to 'release')
-rwxr-xr-x | release | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |