diff options
Diffstat (limited to 'contrib/_incr_version')
-rw-r--r-- | contrib/_incr_version | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/_incr_version b/contrib/_incr_version new file mode 100644 index 00000000..7563965b --- /dev/null +++ b/contrib/_incr_version | |||
@@ -0,0 +1,6 @@ | |||
1 | #!/bin/sh -eu | ||
2 | old_version="$1" | ||
3 | new_version="$2" | ||
4 | sed -i meson.build -e "s/version: '$old_version'/version: '$new_version'/g" | ||
5 | git add meson.build | ||
6 | git commit -m "Update version to $new_version" | ||