~calmbit/suki

ref: bf353378e75f2f8d3d2620b6713d2efc7b5d498b suki/contrib/_incr_version -rwxr-xr-x 228 bytes View raw
bf353378 — CalmBit bad arg number, bad at math 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
#!/bin/sh -eu
old_version="$1"
new_version="$2"
sed -i '' "s/version = \"$old_version\"/version = \"$new_version\"/g" Cargo.toml
cargo update

git add Cargo.toml
git add Cargo.lock

git commit -m "Update version to $new_version"