_incr_version: always overwrite old version number

This commit is contained in:
Drew DeVault 2019-12-31 10:28:50 -05:00
parent a44ae8869b
commit 2a00bb0650
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
#!/bin/sh -eu #!/bin/sh -eu
old_version="$1" old_version="$1"
new_version="$2" new_version="$2"
sed -i meson.build -e "s/version: '$old_version'/version: '$new_version'/g" sed -i meson.build -e "s/^ version: .*#release_version/ version: '$new_version', #release_version/g"
printf "Minimum wlroots version? " printf "Minimum wlroots version? "
read wlr_version_min read wlr_version_min

View file

@ -1,7 +1,7 @@
project( project(
'sway', 'sway',
'c', 'c',
version: '1.2', version: '1.2', #release_version
license: 'MIT', license: 'MIT',
meson_version: '>=0.48.0', meson_version: '>=0.48.0',
default_options: [ default_options: [