1
1
Fork 0
mirror of https://github.com/swaywm/sway synced 2024-05-17 23:56:11 +02:00

contrib: drop incr_version script

This isn't used anymore.
This commit is contained in:
Simon Ser 2021-06-24 18:35:00 +02:00
parent c53ef02385
commit 5cdce42d1b

View File

@ -1,21 +0,0 @@
#!/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? "
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"