From 6833138b5dd3ef247330e4d2b11e56bc37bc72e5 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Fri, 4 Nov 2022 14:19:41 +0000 Subject: [PATCH] docs/releasing: add VERSION variable to avoid typos when copy/pasting Signed-off-by: Eric Engestrom Part-of: --- docs/releasing.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/releasing.rst b/docs/releasing.rst index 266ab025140..8e62d12e9f7 100644 --- a/docs/releasing.rst +++ b/docs/releasing.rst @@ -183,7 +183,9 @@ To setup the branchpoint: git checkout main # make sure we're on main git reset origin # make sure we're at the latest commit - git tag -s X.Y-branchpoint -m "Mesa X.Y branchpoint" + VERSION=X.Y + + git tag -s $VERSION-branchpoint -m "Mesa $VERSION branchpoint" # Make sure main can carry on at the new version $EDITOR VERSION # bump the version number, keeping in mind the wrap around at the end of the year @@ -193,9 +195,9 @@ To setup the branchpoint: git push origin main # Create the tag and branches on the server - git push origin X.Y-branchpoint - git push origin X.Y-branchpoint:refs/heads/X.Y - git push origin X.Y-branchpoint:refs/heads/staging/X.Y + git push origin $VERSION-branchpoint + git push origin $VERSION-branchpoint:refs/heads/$VERSION + git push origin $VERSION-branchpoint:refs/heads/staging/$VERSION Now go to `GitLab `__ and