Skip to content

Commit

Permalink
Add .sh extension to scripts so copyright year is automatically updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven-Roberts committed Jan 21, 2025
1 parent 1ce017c commit 19272fc
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ This is a list of tasks that need to be done before a SUNDIALS release.
* `doc/shared/History.rst`
* `doc/shared/sundials.bib`
* `doc/sundials/biblio.bib`
* `scripts/tarscript`
* `scripts/tarscript.sh`

The following files are no longer maintaianed:

Expand Down
2 changes: 1 addition & 1 deletion doc/arkode/examples/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

# General information about the project.
project = u'Example Programs for ARKODE'
copyright = u'2012-2021, Daniel R. Reynolds, David J. Gardner, Carol S. Woodward, and Cody J. Balos, release number LLNL-SM-668082'
copyright = u'2012-2025, Daniel R. Reynolds, David J. Gardner, Carol S. Woodward, and Cody J. Balos, release number LLNL-SM-668082'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down
2 changes: 1 addition & 1 deletion doc/superbuild/source/developers/releases/Checklist.rst
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Release Procedure
the push to update ``main``.

#. Once readthedocs finishes building the new release, create the tarballs *on a Linux machine*.
Use the ``tarscript`` shell script under the ``scripts`` directory. This also compiles the documents
Use the ``tarscript.sh`` shell script under the ``scripts`` directory. This also compiles the documents
(user guides and example docs) and creates all tarballs in their final form, appropriate for uploading
as artifacts to the GitHub release.

Expand Down
2 changes: 1 addition & 1 deletion scripts/arkode → scripts/arkode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Programmer(s): Daniel R. Reynolds, David J. Gardner, Cody J. Balos @ LLNL
# ------------------------------------------------------------------------------
# SUNDIALS Copyright Start
# Copyright (c) 2002-2024, Lawrence Livermore National Security
# Copyright (c) 2002-2025, Lawrence Livermore National Security
# and Southern Methodist University.
# All rights reserved.
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/cvode → scripts/cvode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Programmer(s): Radu Serban, David J. Gardner, Cody J. Balos @ LLNL
# ------------------------------------------------------------------------------
# SUNDIALS Copyright Start
# Copyright (c) 2002-2024, Lawrence Livermore National Security
# Copyright (c) 2002-2025, Lawrence Livermore National Security
# and Southern Methodist University.
# All rights reserved.
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/cvodes → scripts/cvodes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Programmer(s): Radu Serban, David J. Gardner, Cody J. Balos @ LLNL
# ------------------------------------------------------------------------------
# SUNDIALS Copyright Start
# Copyright (c) 2002-2024, Lawrence Livermore National Security
# Copyright (c) 2002-2025, Lawrence Livermore National Security
# and Southern Methodist University.
# All rights reserved.
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/ida → scripts/ida.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Programmer(s): Radu Serban, David J. Gardner, Cody J. Balos @ LLNL
# ------------------------------------------------------------------------------
# SUNDIALS Copyright Start
# Copyright (c) 2002-2024, Lawrence Livermore National Security
# Copyright (c) 2002-2025, Lawrence Livermore National Security
# and Southern Methodist University.
# All rights reserved.
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/idas → scripts/idas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Programmer(s): Radu Serban, David J. Gardner, Cody J. Balos @ LLNL
# ------------------------------------------------------------------------------
# SUNDIALS Copyright Start
# Copyright (c) 2002-2024, Lawrence Livermore National Security
# Copyright (c) 2002-2025, Lawrence Livermore National Security
# and Southern Methodist University.
# All rights reserved.
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/kinsol → scripts/kinsol.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Programmer(s): Radu Serban, David J. Gardner, Cody J. Balos @ LLNL
# ------------------------------------------------------------------------------
# SUNDIALS Copyright Start
# Copyright (c) 2002-2024, Lawrence Livermore National Security
# Copyright (c) 2002-2025, Lawrence Livermore National Security
# and Southern Methodist University.
# All rights reserved.
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/shared → scripts/shared.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Programmer(s): Radu Serban, David J. Gardner, Cody J. Balos @ LLNL
# ------------------------------------------------------------------------------
# SUNDIALS Copyright Start
# Copyright (c) 2002-2024, Lawrence Livermore National Security
# Copyright (c) 2002-2025, Lawrence Livermore National Security
# and Southern Methodist University.
# All rights reserved.
#
Expand Down
4 changes: 2 additions & 2 deletions scripts/tarscript → scripts/tarscript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Programmer(s): Radu Serban, David J. Gardner, Cody J. Balos @ LLNL
# ------------------------------------------------------------------------------
# SUNDIALS Copyright Start
# Copyright (c) 2002-2024, Lawrence Livermore National Security
# Copyright (c) 2002-2025, Lawrence Livermore National Security
# and Southern Methodist University.
# All rights reserved.
#
Expand Down Expand Up @@ -34,7 +34,7 @@ function print_usage

# Print help message
echo ""
echo "Usage: tarscript [-hsv] [module]"
echo "Usage: tarscript.sh [-hsv] [module]"
echo " -h : help"
echo " -s : short (no documentation)"
echo " -q : quiet"
Expand Down
2 changes: 1 addition & 1 deletion scripts/updateVersion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ sedi "s/UCRL-SM-208114,.*/UCRL-SM-208114, ${date}./" $fn
# Update tarscript
# ------------------------------------------------------------------------------

fn="tarscript"
fn="tarscript.sh"
sedi "s/SUN_VER=.*/SUN_VER=\"${sun_ver}\"/" $fn
sedi "s/CV_VER=.*/CV_VER=\"${cv_ver}\"/" $fn
sedi "s/CVS_VER=.*/CVS_VER=\"${cvs_ver}\"/" $fn
Expand Down
4 changes: 2 additions & 2 deletions test/test_driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -514,11 +514,11 @@ if [ "$tarball" != NONE ]; then
cd scripts

echo "START TARSCRIPT"
time ./tarscript $tarball | tee -a tar.log
time ./tarscript.sh $tarball | tee -a tar.log

# Check tarscript return code
rc=${PIPESTATUS[0]}
echo -e "\ntarscript returned $rc\n" | tee -a tar.log
echo -e "\ntarscript.sh returned $rc\n" | tee -a tar.log
if [ "$rc" -ne 0 ]; then exit 1; fi

# Relocate log and tarballs
Expand Down

0 comments on commit 19272fc

Please sign in to comment.