aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/_incr_version7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/_incr_version b/contrib/_incr_version
index 436faf14..a4fa2654 100755
--- a/contrib/_incr_version
+++ b/contrib/_incr_version
@@ -1,6 +1,13 @@
1#!/bin/sh -eu 1#!/bin/sh -eu
2old_version="$1" 2old_version="$1"
3new_version="$2" 3new_version="$2"
4
5if [ "$new_version" != "${new_version#v}" ]
6then
7 echo "Error: The new version shouldn't be prefixed with a \"v\"." >&2
8 exit 1
9fi
10
4sed -i meson.build -e "s/^ version: .*#release_version/ version: '$new_version', #release_version/g" 11sed -i meson.build -e "s/^ version: .*#release_version/ version: '$new_version', #release_version/g"
5 12
6printf "Minimum wlroots version? " 13printf "Minimum wlroots version? "