diff options
Diffstat (limited to 'contrib/_incr_version')
-rwxr-xr-x | contrib/_incr_version | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/contrib/_incr_version b/contrib/_incr_version deleted file mode 100755 index a4fa2654..00000000 --- a/contrib/_incr_version +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | #!/bin/sh -eu | ||
2 | old_version="$1" | ||
3 | new_version="$2" | ||
4 | |||
5 | if [ "$new_version" != "${new_version#v}" ] | ||
6 | then | ||
7 | echo "Error: The new version shouldn't be prefixed with a \"v\"." >&2 | ||
8 | exit 1 | ||
9 | fi | ||
10 | |||
11 | sed -i meson.build -e "s/^ version: .*#release_version/ version: '$new_version', #release_version/g" | ||
12 | |||
13 | printf "Minimum wlroots version? " | ||
14 | read wlr_version_min | ||
15 | printf "Maximum wlroots version? " | ||
16 | read wlr_version_max | ||
17 | |||
18 | sed -i meson.build -e "s/wlroots_version =.*/wlroots_version = ['>=$wlr_version_min', '<$wlr_version_max']/" | ||
19 | |||
20 | git add meson.build | ||
21 | git commit -m "Update version to $new_version" | ||