release.sh: fix version find-and-replace

pull/71/head^2
Jake McGinty 2021-05-09 21:35:21 +09:00
parent 981f7e8701
commit 558cd7eaca
1 changed files with 5 additions and 4 deletions

View File

@ -31,10 +31,11 @@ for binary in "innernet" "innernet-server"; do
gzip -fk "doc/$binary.8" gzip -fk "doc/$binary.8"
done done
git add doc
perl -pi -e "s/$OLD_VERSION/$VERSION/g" README.md
VERSION="v$(cargo pkgid -p shared | cut -d '#' -f 2)" 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 commit -m "meta: release $VERSION"
git tag -a "$VERSION" -m "release $VERSION" git tag -f -a "$VERSION" -m "release $VERSION"