From a44ae8869b9a2090aa1eec39316cd8ba6aa13234 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 31 Dec 2019 10:27:13 -0500 Subject: [PATCH] _incr_version: prompt for target wlroots release --- contrib/_incr_version | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/contrib/_incr_version b/contrib/_incr_version index 7563965b7..7059918d8 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"