Skip to content

Commit

Permalink
master: new_release.sh: automatically chage first_version file in sta…
Browse files Browse the repository at this point in the history
…ble branches.
  • Loading branch information
bradbell committed Jan 9, 2025
1 parent 6d267b1 commit d732e12
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions bin/new_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,25 +96,13 @@ then
elif [[ "$version" =~ ^[0-9]{8}[.][0-9]{1,2}$ ]]
then
version_type=2
echo "new_release.sh: version in $first_version_file"
echo "is for a release but this is the $main_branch branch"
exit 1
elif [[ "$version" =~ ^[0-9]{4}[.][0-9]{1,2}[.][0-9]{1,2}$ ]]
then
version_type=3
if [[ "$version" =~ ^[0-9]{4}[.][0].*$ ]]
then
echo "new_release.sh: version in $first_version_file"
echo "is for a release but this is the $main_branch branch"
exit 1
fi
else
echo "check_version.sh: can't find version number in $first_version_file"
exit 1
fi
#
# tag
if [ "$version_type" == 1 ]
if [ "$version_type" == 1 ] || [ "$version_type" == 2 ]
then
tag="${year}0000.$release"
else
Expand Down Expand Up @@ -240,6 +228,13 @@ then
exit 1
fi
#
# check_version
# changes to version ?
if ! bin/check_version.sh
then
echo 'Continuing even thought bin/check_version made changes.'
fi
#
# check_all.sh
if [ "$tag_commited" == 'yes' ]
then
Expand Down

0 comments on commit d732e12

Please sign in to comment.