aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2019-08-27 13:41:54 +0900
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-08-27 13:41:54 +0900
commitb6e3045d328a6f18c445f006e3dfb3cd60bd1df8 (patch)
tree627f1dba1f5f821399e7582757eafebf208eea1a
parentchmod +x contrib/_incr_version (diff)
downloadsway-b6e3045d328a6f18c445f006e3dfb3cd60bd1df8.tar.gz
sway-b6e3045d328a6f18c445f006e3dfb3cd60bd1df8.tar.zst
sway-b6e3045d328a6f18c445f006e3dfb3cd60bd1df8.zip
Further refinements to _incr_version script
-rwxr-xr-xcontrib/_incr_version3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/_incr_version b/contrib/_incr_version
index 7563965b..b89ecd19 100755
--- a/contrib/_incr_version
+++ b/contrib/_incr_version
@@ -1,6 +1,5 @@
1#!/bin/sh -eu 1#!/bin/sh -eu
2old_version="$1"
3new_version="$2" 2new_version="$2"
4sed -i meson.build -e "s/version: '$old_version'/version: '$new_version'/g" 3sed -i meson.build -e "s/^\tversion: '.*'/\tversion: '$new_version'/"
5git add meson.build 4git add meson.build
6git commit -m "Update version to $new_version" 5git commit -m "Update version to $new_version"