aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-12-31 10:28:50 -0500
committerDrew DeVault <sir@cmpwn.com>2019-12-31 10:31:40 -0500
commit2a00bb0650db4fa8d148dcdcf475a054fd5f78f4 (patch)
treec68cdc187bc24e5e411627fcca5655be1dad0da9
parenta44ae8869b9a2090aa1eec39316cd8ba6aa13234 (diff)
_incr_version: always overwrite old version number
-rwxr-xr-xcontrib/_incr_version2
-rw-r--r--meson.build2
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/_incr_version b/contrib/_incr_version
index 7059918d..436faf14 100755
--- a/contrib/_incr_version
+++ b/contrib/_incr_version
@@ -1,7 +1,7 @@
#!/bin/sh -eu
old_version="$1"
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? "
read wlr_version_min
diff --git a/meson.build b/meson.build
index 70afcd50..230d6b1e 100644
--- a/meson.build
+++ b/meson.build
@@ -1,7 +1,7 @@
project(
'sway',
'c',
- version: '1.2',
+ version: '1.2', #release_version
license: 'MIT',
meson_version: '>=0.48.0',
default_options: [