diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-06-23 15:45:51 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-06-23 16:22:15 (EDT) |
commit | b73141d5e71aa89962e12bbeba2255d8296bb8d5 (patch) | |
tree | 5f53921a9f53556602734ba1ac56bb95e54097ea | |
parent | a311f3a973c9dc485a0273186b6bb07de874055f (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 |