-
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.
master: check_version.sh: only automatically edit version on master b…
…ranch. check_copy.sh: convert 2024-24 -> 2024.
- Loading branch information
Showing
4 changed files
with
19 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later | ||
# SPDX-FileCopyrightText: Bradley M. Bell <[email protected]> | ||
# SPDX-FileContributor: 2003-23 Bradley M. Bell | ||
# SPDX-FileContributor: 2003-24 Bradley M. Bell | ||
# ---------------------------------------------------------------------------- | ||
# ============================================================================= | ||
# Some constants | ||
|
@@ -16,7 +16,7 @@ IF( POLICY CMP0054 ) | |
ENDIF( POLICY CMP0054 ) | ||
# | ||
# cppad_version is used by version.sh to get the version number. | ||
SET(cppad_version "20240223") | ||
SET(cppad_version "20240224") | ||
SET(cppad_url "https://coin-or.github.io/CppAD" ) | ||
SET(cppad_description "Differentiation of C++ Algorithms" ) | ||
IF( NOT DEFINED CMAKE_BUILD_TYPE) | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later | ||
# SPDX-FileCopyrightText: Bradley M. Bell <[email protected]> | ||
# SPDX-FileContributor: 2003-23 Bradley M. Bell | ||
# SPDX-FileContributor: 2003-24 Bradley M. Bell | ||
# ---------------------------------------------------------------------------- | ||
{xrst_begin user_guide} | ||
{xrst_spell | ||
|
@@ -13,7 +13,7 @@ | |
|
||
{xrst_comment BEGIN: Before changing see new_release.sh and check_version.sh} | ||
|
||
cppad-20240223: CppAD User's Manual | ||
cppad-20240224: CppAD User's Manual | ||
################################### | ||
|
||
.. image:: {xrst_dir coin.png} | ||
|