diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2021-01-13 09:21:18 (EST) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2021-01-13 09:21:18 (EST) |
commit | d3664a52d6650cecdff8965d039c8ae62d80dfa0 (patch) | |
tree | 2de18cf4225f8d432e70db4949d3b8f22dbebef9 /release | |
parent | 96c80022b4364763c00898432afa58b2ece54aa7 (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 |