;tools: just relprep -> relbranch

This commit is contained in:
Simon Michael 2024-12-07 14:38:44 -10:00
parent 1be0afe2ff
commit bab557b3b5

View File

@ -1105,24 +1105,25 @@ bloglog:
# ** Releasing ------------------------------------------------------------ # ** Releasing ------------------------------------------------------------
RELEASING: RELEASING:
# Prepare to release today, creating/switching to release branch and doing routine updates - versions, dates, manuals, command helps # Create or switch to this release branch, and set the version string in various places.
relprep VER: relbranch VER:
#!/usr/bin/env bash #!/usr/bin/env bash
set -euo pipefail set -euo pipefail
[[ -z {{ VER }} ]] && usage [[ -z {{ VER }} ]] && usage
BRANCH=$(just _versionReleaseBranch {{ VER }}) BRANCH=$(just _versionReleaseBranch {{ VER }})
echo "Switching to $BRANCH, auto-creating it if needed..." echo "Switching to $BRANCH, auto-creating it if needed"
just _gitSwitchAutoCreate "$BRANCH" just _gitSwitchAutoCreate "$BRANCH"
echo "Bumping all version strings to {{ VER }} ..." echo "Setting {{ VER }} in package.yamls and .version.m4 macros"
./Shake setversion {{ VER }} -c ./Shake setversion {{ VER }} -c
echo "Updating all command help texts for embedding..." # Too much at once, allow smaller steps.
./Shake cmddocs -c # echo "Updating all command help texts for embedding..."
echo "Updating all dates in man pages..." # ./Shake cmddocs -c
./Shake mandates # echo "Updating all dates in man pages..."
echo "Generating all the manuals in all formats...." # ./Shake mandates
./Shake manuals -c # echo "Generating all the manuals in all formats...."
# echo "Updating CHANGES.md files with latest commits..." # ./Shake manuals -c
# ./Shake changelogs $COMMIT # # echo "Updating CHANGES.md files with latest commits..."
# # ./Shake changelogs $COMMIT
# Push the current branch to github to generate release binaries. # Push the current branch to github to generate release binaries.
@relbin: @relbin: