diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-11-08 10:51:42 (EST) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-11-08 10:51:42 (EST) |
commit | 2f0afff8628de06b907cfdda2ac8f869d3f37c99 (patch) | |
tree | bddb17e9a711166a6441ed9b5d622c9d533531e9 /release | |
parent | 6ab592485ac626359e765a01a261dbe75a2ab603 (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 |