-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stable/20240000: run master bin/new_release.sh with release equal to 4.
- Loading branch information
Showing
3 changed files
with
15 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
set -e -u | ||
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later | ||
# SPDX-FileCopyrightText: Bradley M. Bell <[email protected]> | ||
# SPDX-FileContributor: 2003-22 Bradley M. Bell | ||
# SPDX-FileContributor: 2003-24 Bradley M. Bell | ||
# ---------------------------------------------------------------------------- | ||
if [ $# != 0 ] | ||
then | ||
|
@@ -46,31 +46,21 @@ version=$( | |
sed -e 's|.*"\([^"]*\)".*|\1|' | ||
) | ||
# | ||
# version, release | ||
release='yes' | ||
if echo $version | grep '[0-9]\{4\}0000[.]' > /dev/null | ||
# branch | ||
branch=$(git branch | sed -n -e '/^[*]/p' | sed -e 's|^[*] *||') | ||
# | ||
# version | ||
if [ "$branch" == 'master' ] | ||
then | ||
version=$( date +%Y%m%d ) | ||
fi | ||
if echo $branch | grep '^stable/' > /dev/null | ||
then | ||
res='' | ||
while [ "$res" != 'ok' ] && [ "$res" != 'date' ] && [ "$res" != 'abort' ] | ||
do | ||
echo "In CMakeLists.txt version = $version" | ||
echo 'ok: use this version.' | ||
echo 'date: repalce this by the current date.' | ||
echo 'abort: if you whish to change the version in CMakeLists.txt.' | ||
read -p '[ok/date/abort] ?' res | ||
done | ||
if [ "$res" == 'abort' ] | ||
if ! echo $version | grep '^[0-9]\{4\}0000[.]' > /dev/null | ||
then | ||
echo 'check_version.sh: Stable version does not begin with yyyy0000.' | ||
exit 1 | ||
fi | ||
if [ "$res" == 'date' ] | ||
then | ||
release='no' | ||
version=$( date +%Y%m%d ) | ||
fi | ||
else | ||
release='no' | ||
version=$( date +%Y%m%d ) | ||
fi | ||
# | ||
# version_ok | ||
|
@@ -83,7 +73,7 @@ version_files=' | |
' | ||
# | ||
# temp.sed | ||
if [ "$release" == 'yes' ] | ||
if echo $branch | grep '^stable/' > /dev/null | ||
then | ||
stable=$( echo $version | sed -e 's|[.][0-9]*$||' ) | ||
cat << EOF > temp.sed | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters