aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Schodet2021-10-23 22:57:33 +0200
committerNicolas Schodet2021-10-23 23:12:32 +0200
commitfe25b27fa63da8a4b30a008c224b3d305190fa49 (patch)
treed3d7ff97c770d1b6f59572f12e30426fd76c431c
parentcfaa49cef23813739ba3e0347777b1f127205e95 (diff)
Add a script to update version
So that it is not forgot in the future. This is to be used with semver script from Drew DeVault.
-rwxr-xr-xcontrib/_incr_version5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/_incr_version b/contrib/_incr_version
new file mode 100755
index 0000000..343fba7
--- /dev/null
+++ b/contrib/_incr_version
@@ -0,0 +1,5 @@
+#!/bin/sh -eux
+sed -i meson.build -e "s/^ version : '${1}'/ version : '${2}'/"
+sed -i README -e "s/v${1}/v${2}/"
+git add meson.build README
+git commit -m "Update version to ${2}"