Further refinements to _incr_version script

This commit is contained in:
Drew DeVault 2019-08-27 13:41:54 +09:00
parent 7e9a9f1439
commit b6e3045d32

View file

@ -1,6 +1,5 @@
#!/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/^\tversion: '.*'/\tversion: '$new_version'/"
git add meson.build
git commit -m "Update version to $new_version"