From 558cd7eacacffd3b3367390540c23351841624a9 Mon Sep 17 00:00:00 2001 From: Jake McGinty Date: Sun, 9 May 2021 21:35:21 +0900 Subject: [PATCH] release.sh: fix version find-and-replace --- release.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/release.sh b/release.sh index 66dd166..7386977 100755 --- a/release.sh +++ b/release.sh @@ -31,10 +31,11 @@ for binary in "innernet" "innernet-server"; do gzip -fk "doc/$binary.8" done -git add doc -perl -pi -e "s/$OLD_VERSION/$VERSION/g" README.md - VERSION="v$(cargo pkgid -p shared | cut -d '#' -f 2)" +perl -pi -e "s/$OLD_VERSION/$VERSION/g" README.md + +git add doc +git add README.md git commit -m "meta: release $VERSION" -git tag -a "$VERSION" -m "release $VERSION" +git tag -f -a "$VERSION" -m "release $VERSION"