From 644a0c1f4525bdc4531768c4ef48e5ceff3ea599 Mon Sep 17 00:00:00 2001 From: Linus Probert Date: Thu, 17 May 2018 08:59:13 +0200 Subject: [PATCH] Quick and dirty release script --- build/scripts/release_patch_version.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 build/scripts/release_patch_version.sh diff --git a/build/scripts/release_patch_version.sh b/build/scripts/release_patch_version.sh new file mode 100644 index 0000000..d53399c --- /dev/null +++ b/build/scripts/release_patch_version.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +# Get the current patch version +CURRENT_VERSION=$(egrep -o 'breakhack_PATCH_VERSION [0-9]+' CMakeLists.txt | awk '{print $2}') +git tag early-access-v$CURRENT_VERSION +git push origin early-access-v$CURRENT_VERSION + +NEXT_VERSION=$((CURRENT_VERSION + 1)) +# Update the version +sed -i -e "s/breakhack_PATCH_VERSION [0-9]\+/breakhack_PATCH_VERSION $NEXT_VERSION/" CMakeLists.txt +git commit -a -m"Patch version raised to $NEXT_VERSION" +"push"