diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2019-12-31 10:27:13 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2019-12-31 10:27:13 -0500 |
| commit | 22b3ebdf9b495d2ed9329817e66fe805c0979b11 (patch) | |
| tree | bbd5bda66dd9163222e9a6b0f72b7e32c93cab2c | |
| parent | 10fe765e0663fe3aca031650e60b5557771fa531 (diff) | |
_incr_version: prompt for target wlroots release
| -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" |
