diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-06-06 23:59:05 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-06-06 23:59:05 (EDT) |
commit | 56f02044861a604fab50159a3b9797b62f3c0865 (patch) | |
tree | 2a803a51836cf3a6f890101c7fc0c27f2833e62b /release | |
parent | 1e4beb01475301f963137a04aa8c9d1be29bb9d8 (diff) |
release: New script (copied from gcc-8)
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 |