summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2020-12-19 19:42:10 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2020-12-19 21:15:12 (EST)
commitee8ee2d422a392823fd710d6c2428111252eb399 (patch)
tree5d63e9e6139308db0e31914ffc6318ec5bba4b54
parentdf84957b77fc4043e7dc1483753d5527b5cdd21b (diff)
release: Work around Git tag name limitation
Fixes: fatal: 'lzip/1.22~rc3-1' is not a valid tag name.
-rwxr-xr-xrelease1
1 files changed, 1 insertions, 0 deletions
diff --git a/release b/release
index 871cb4a..0b33aca 100755
--- a/release
+++ b/release
@@ -10,4 +10,5 @@ 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
+ver="$(printf '%s' "${ver}" | tr '~' '.')"
git tag "${src}/${ver}" HEAD