diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-12-31 10:27:13 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-12-31 10:27:13 -0500 |
commit | a44ae8869b9a2090aa1eec39316cd8ba6aa13234 (patch) | |
tree | bbd5bda66dd9163222e9a6b0f72b7e32c93cab2c /contrib | |
parent | f501a60c14375132fae64d0a04d1a5523811ac5d (diff) |
_incr_version: prompt for target wlroots release
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/_incr_version | 8 |
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" |