Debian Codegraph @

bumpversion.sh

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2
3 set -xe
4
5 current_branch=`gitscip-shell system . . git. rev-parse --abbrev-ref HEAD`
6 release_branch="main"
7
8
9 if [scip-shell system . . `[`. "${current_branch}" != "${release_branch}" ]; then
10 echoscip-shell system . . echo. can only bump version on $release_branch
11 exit 1
12 fi
13
14 whichscip-shell system . . which. convco
15 whichscip-shell system . . which. cargo-set-version
16
17 NEXT_VERSION=`convco version --bump HEAD`
18
19 cargoscip-shell system . . cargo. set-version $NEXT_VERSION
20 gitscip-shell system . . git. add Cargo.toml
21 gitscip-shell system . . git. commit -m "chore: bump version"
22 gitscip-shell system . . git. tag v$NEXT_VERSION
23
24 convco changelog > CHANGELOG.md
25 gitscip-shell system . . git. add CHANGELOG.md
26 gitscip-shell system . . git. commit -m "chore: changelog"