aboutsummaryrefslogtreecommitdiff
path: root/contrib/_incr_version
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-08-27 12:29:42 +0900
committerDrew DeVault <sir@cmpwn.com>2019-08-27 12:29:42 +0900
commitc2030b9abd20f5166c5106db450bf1704b8cd6a4 (patch)
tree987289db3571541eef638625621e3750262702e1 /contrib/_incr_version
parentf07b9afee575fb52bb17bbcc7ad0ecf6b19926e6 (diff)
Add _incr_version to contrib/
Diffstat (limited to 'contrib/_incr_version')
-rw-r--r--contrib/_incr_version6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/_incr_version b/contrib/_incr_version
new file mode 100644
index 00000000..7563965b
--- /dev/null
+++ b/contrib/_incr_version
@@ -0,0 +1,6 @@
+#!/bin/sh -eu
+old_version="$1"
+new_version="$2"
+sed -i meson.build -e "s/version: '$old_version'/version: '$new_version'/g"
+git add meson.build
+git commit -m "Update version to $new_version"