From 61e3f6716c6ba304b23d8a21a1d2c81931c44f69 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Tue, 14 Jun 2016 05:39:17 +0200 Subject: [PATCH] feat(bump.sh): Version bumping script --- bump.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bump.sh diff --git a/bump.sh b/bump.sh new file mode 100755 index 00000000..3fd5839e --- /dev/null +++ b/bump.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +# shellcheck disable=SC2016 +tag_prev=$(git tag -l | tail -2 | head -1) +tag_curr=$(git tag -l | tail -1) + +sed -r "s/${tag_prev}/${tag_curr}/g" -i README.md CMakeLists.txt contrib/lemonbuddy.aur/PKGBUILD contrib/lemonbuddy.aur/.SRCINFO +git add README.md CMakeLists.txt contrib/lemonbuddy.aur/PKGBUILD contrib/lemonbuddy.aur/.SRCINFO +git commit -m "build: Bump version to ${tag_curr}" +git show HEAD