Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhassell committed Mar 10, 2023
1 parent eee301b commit 3a233a0
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions release_docs
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,23 @@ zip cf_tutorial_files.zip *.nc *.pp
cd -

# Regerenate tutorial.py field_analysis.py
#if [[ $1 = "latest" ]] || [[ $1 = "archive" ]] ; then
# ./test_tutorial_code
# rc=$?
# if [[ $rc != 0 ]]; then
# echo "test_tutorial_code failed."
# # exit $rc
# fi
# pre-commit run --files tutorial.py field_analysis.py
#fi
if [[ $1 = "latest" ]] || [[ $1 = "archive" ]] ; then
./test_tutorial_code
rc=$?
if [[ $rc != 0 ]]; then
echo "test_tutorial_code failed."
# exit $rc
fi
pre-commit run --files tutorial.py field_analysis.py
fi

# --------------------------------------------------------------------
# Make the latest docs
# --------------------------------------------------------------------
cd docs
#if [[ $1 = "latest" ]] || [[ $1 = "archive" ]] || [[ $1 = "dev-clean" ]] ; then
# rm -fr $dir/.doctrees
#fi
if [[ $1 = "latest" ]] || [[ $1 = "archive" ]] || [[ $1 = "dev-clean" ]] ; then
rm -fr $dir/.doctrees
fi
mkdir -p $dir/_downloads

#if [[ $1 = "latest" ]] || [[ $1 = "archive" ]] ; then
Expand Down

0 comments on commit 3a233a0

Please sign in to comment.