aboutsummaryrefslogtreecommitdiff
path: root/contrib/_incr_version
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/_incr_version')
-rw-r--r--contrib/_incr_version8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/_incr_version b/contrib/_incr_version
new file mode 100644
index 0000000..c2ded2c
--- /dev/null
+++ b/contrib/_incr_version
@@ -0,0 +1,8 @@
+#!/bin/sh -eu
+old_version="$1"
+new_version="$2"
+sed -i "s/version = \"$old_version\"/version = \"$new_version\"/" Cargo.toml
+
+
+git add Cargo.toml
+git commit -m "Update version to $new_version"