Fixed releasenotes and script again

This commit is contained in:
Linus Probert 2018-05-17 10:06:58 +02:00
parent 769a659bfe
commit f049d66219
3 changed files with 17 additions and 6 deletions

View File

@ -0,0 +1,8 @@
769a659 Patch version raised to 5
0fcc1d2 Last time now
60750d7 Patch version raised to 5
a551c52 More trickery
fa0dbe2 Fixes miss in release script
beb2e79 Patch version raised to 5
7f09fbd Fiddled some more with release script
d4f2514 Patch version raised to 5

View File

@ -4,16 +4,19 @@
LAST_VERSION=$(egrep -o 'breakhack_PATCH_VERSION [0-9]+' CMakeLists.txt | awk '{print $2}') LAST_VERSION=$(egrep -o 'breakhack_PATCH_VERSION [0-9]+' CMakeLists.txt | awk '{print $2}')
NEXT_VERSION=$((LAST_VERSION + 1)) NEXT_VERSION=$((LAST_VERSION + 1))
LAST_TAG=early-access-v$LAST_VERSION
NEXT_TAG=early-access-v$NEXT_VERSION
# Update the version and create release notes # Update the version and create release notes
sed -i -e "s/breakhack_PATCH_VERSION [0-9]\+/breakhack_PATCH_VERSION $NEXT_VERSION/" CMakeLists.txt sed -i -e "s/breakhack_PATCH_VERSION [0-9]\+/breakhack_PATCH_VERSION $NEXT_VERSION/" CMakeLists.txt
git log --oneline early-access-v$LAST_VERSION..early-access-v$NEXT_VERSION > build/releasenotes/early-access-v$NEXT_VERSION git log --oneline $LAST_TAG..$NEXT_TAG > build/releasenotes/$NEXT_TAG.txt
git add build/releasenotes/early-access-v$NEXT_VERSION git add build/releasenotes/$NEXT_TAG.txt
git commit -a -m"Patch version raised to $NEXT_VERSION" git commit -a -m"Patch version raised to $NEXT_VERSION"
# Create the tag
git tag $NEXT_TAG
# Push to repo # Push to repo
git push git push
git push origin $NEXT_TAG
# Create the tag
git tag early-access-v$NEXT_VERSION
git push origin early-access-v$NEXT_VERSION