Quick and dirty release script

This commit is contained in:
Linus Probert 2018-05-17 08:59:13 +02:00
parent a7822331f8
commit 644a0c1f45
1 changed files with 12 additions and 0 deletions

View File

@ -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"