We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39d4456 commit ab61e15Copy full SHA for ab61e15
bump-release
@@ -10,19 +10,23 @@ bump()
10
sed -i '/^version /c version = "'"$v"'"' Cargo.toml
11
sed -i "/^:version: /c :version: $v" doc/*.adoc
12
cargo build
13
- git add --patch
14
}
15
16
main()
17
{
18
- local v="$1"
+ local v="${1:?specify version}"
19
20
sed -i 's/Unreleased/'"$v - $(date --iso-8601=date)"'/' CHANGELOG.md
21
bump "$v"
+ git add --patch
22
git commit --message "commitmsgfmt $v"
23
git tag --annotate "v$v" --message "commitmsgfmt $v"
24
25
bump "$v-GIT"
26
+ local f=$(mktemp)
27
+ awk '/^## / && !done { print "## Unreleased\n" ; done=1 } 1' CHANGELOG.md > $f
28
+ mv $f CHANGELOG.md
29
30
git commit --message "Start next cycle"
31
32
0 commit comments