diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-06-26 23:27:39 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-06-26 23:27:39 (EDT) |
commit | 6a9fe5f4cdd83eaddd4ce2aae9799f30c8d98412 (patch) | |
tree | d8b53ff9a4cf94ffb8bd143a7724901fc5e34950 | |
parent | 255dd37f1e123f3b9b19a8b3b15ce4662c2792a5 (diff) |
release: New script (copied from gcc-8)
-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 |