diff options
-rwxr-xr-x | contrib/_incr_version | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/_incr_version b/contrib/_incr_version index 436faf14..a4fa2654 100755 --- a/contrib/_incr_version +++ b/contrib/_incr_version @@ -1,6 +1,13 @@ #!/bin/sh -eu old_version="$1" new_version="$2" + +if [ "$new_version" != "${new_version#v}" ] +then + echo "Error: The new version shouldn't be prefixed with a \"v\"." >&2 + exit 1 +fi + sed -i meson.build -e "s/^ version: .*#release_version/ version: '$new_version', #release_version/g" printf "Minimum wlroots version? " |