aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-12-31 10:27:13 -0500
committerDrew DeVault <sir@cmpwn.com>2019-12-31 10:27:13 -0500
commita44ae8869b9a2090aa1eec39316cd8ba6aa13234 (patch)
treebbd5bda66dd9163222e9a6b0f72b7e32c93cab2c /contrib
parentf501a60c14375132fae64d0a04d1a5523811ac5d (diff)
_incr_version: prompt for target wlroots release
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/_incr_version8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/_incr_version b/contrib/_incr_version
index 7563965b..7059918d 100755
--- a/contrib/_incr_version
+++ b/contrib/_incr_version
@@ -2,5 +2,13 @@
old_version="$1"
new_version="$2"
sed -i meson.build -e "s/version: '$old_version'/version: '$new_version'/g"
+
+printf "Minimum wlroots version? "
+read wlr_version_min
+printf "Maximum wlroots version? "
+read wlr_version_max
+
+sed -i meson.build -e "s/wlroots_version =.*/wlroots_version = ['>=$wlr_version_min', '<$wlr_version_max']/"
+
git add meson.build
git commit -m "Update version to $new_version"