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"