diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-05-31 10:48:32 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-05-31 10:48:32 (EDT) |
commit | 085bd07486d67303934456f9493c2c93f5a19305 (patch) | |
tree | 42807b9de87a8f1b685c2ff715ac82bd7eff5159 | |
parent | b7d01a330bd75e555f4fdd3860f346eda140f5eb (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 |