1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
# Usage: s/version++ [patch|minor|major]
#
# Bumps Cargo.toml, refreshes CHANGELOG.md from git-cliff, and tags HEAD.
#
# Workflow: commit your feature first (with a conventional-commit message),
# THEN run this script. git-cliff reads committed history, so any uncommitted
# changes won't appear in the new CHANGELOG.md section.
# set -v # Enable verbose mode
# scripts may need to be made executable on some platforms before they can be run
# chmod +x s/<filename> is the command to do this on unixy systems
bump="patch"
if ; then
fi
version=""
tag="v"
if ; then
fi
# Refresh CHANGELOG.md if git-cliff is on PATH. Renders the in-progress
# section under the new version + date by passing --tag.
# Skip silently when git-cliff isn't installed - it's a release-day tool.
if ; then
else
fi