diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-11-22 21:15:37 (EST) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-12-06 10:09:18 (EST) |
commit | bcdc3f94cca64d962b1ebd6053ad10f93d736bb6 (patch) | |
tree | e22ba11509b9d5a398287df25b55c9538915465c /release | |
parent | 42f5b9b3149238961c90b19c4858a19b1a0d138d (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 |