diff options
author | 2019-12-31 10:27:13 -0500 | |
---|---|---|
committer | 2019-12-31 10:27:13 -0500 | |
commit | a44ae8869b9a2090aa1eec39316cd8ba6aa13234 (patch) | |
tree | bbd5bda66dd9163222e9a6b0f72b7e32c93cab2c /contrib | |
parent | Add virtual pointer protocol (diff) | |
download | sway-a44ae8869b9a2090aa1eec39316cd8ba6aa13234.tar.gz sway-a44ae8869b9a2090aa1eec39316cd8ba6aa13234.tar.zst sway-a44ae8869b9a2090aa1eec39316cd8ba6aa13234.zip |
_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 @@ | |||
2 | old_version="$1" | 2 | old_version="$1" |
3 | new_version="$2" | 3 | new_version="$2" |
4 | sed -i meson.build -e "s/version: '$old_version'/version: '$new_version'/g" | 4 | sed -i meson.build -e "s/version: '$old_version'/version: '$new_version'/g" |
5 | |||
6 | printf "Minimum wlroots version? " | ||
7 | read wlr_version_min | ||
8 | printf "Maximum wlroots version? " | ||
9 | read wlr_version_max | ||
10 | |||
11 | sed -i meson.build -e "s/wlroots_version =.*/wlroots_version = ['>=$wlr_version_min', '<$wlr_version_max']/" | ||
12 | |||
5 | git add meson.build | 13 | git add meson.build |
6 | git commit -m "Update version to $new_version" | 14 | git commit -m "Update version to $new_version" |