aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/_incr_version
blob: 436faf1489861a3c26eb28f963c05d19e678a904 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -eu
old_version="$1"
new_version="$2"
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"