From 5c444cc84134383146c211c42057bbd18e61f86b Mon Sep 17 00:00:00 2001 From: Jake McGinty Date: Fri, 9 Apr 2021 16:25:26 +0900 Subject: [PATCH] release.sh: generate manpages after version bump --- release.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/release.sh b/release.sh index 2d29520..c9cd604 100755 --- a/release.sh +++ b/release.sh @@ -17,6 +17,11 @@ done [ "$#" -eq 1 ] || die "usage: ./release.sh [patch|major|minor|rc]" git diff --quiet || die 'ERROR: git repo is dirty.' +cargo release "$1" --no-confirm --exclude "hostsfile" + +# re-stage the manpage commit and the cargo-release commit +git reset --soft @~1 + cargo build for binary in "innernet" "innernet-server"; do @@ -25,11 +30,6 @@ for binary in "innernet" "innernet-server"; do done git add doc -git commit -m "meta: update manpages" -cargo release "$1" --no-confirm --exclude "hostsfile" - -# re-stage the manpage commit and the cargo-release commit -git reset --soft @~2 VERSION="$(cargo pkgid -p shared | cut -d '#' -f 2)"