Skip to content

Commit 3a233a0

Browse files
committed
tidy
1 parent eee301b commit 3a233a0

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

release_docs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,23 @@ zip cf_tutorial_files.zip *.nc *.pp
4949
cd -
5050

5151
# Regerenate tutorial.py field_analysis.py
52-
#if [[ $1 = "latest" ]] || [[ $1 = "archive" ]] ; then
53-
# ./test_tutorial_code
54-
# rc=$?
55-
# if [[ $rc != 0 ]]; then
56-
# echo "test_tutorial_code failed."
57-
# # exit $rc
58-
# fi
59-
# pre-commit run --files tutorial.py field_analysis.py
60-
#fi
52+
if [[ $1 = "latest" ]] || [[ $1 = "archive" ]] ; then
53+
./test_tutorial_code
54+
rc=$?
55+
if [[ $rc != 0 ]]; then
56+
echo "test_tutorial_code failed."
57+
# exit $rc
58+
fi
59+
pre-commit run --files tutorial.py field_analysis.py
60+
fi
6161

6262
# --------------------------------------------------------------------
6363
# Make the latest docs
6464
# --------------------------------------------------------------------
6565
cd docs
66-
#if [[ $1 = "latest" ]] || [[ $1 = "archive" ]] || [[ $1 = "dev-clean" ]] ; then
67-
# rm -fr $dir/.doctrees
68-
#fi
66+
if [[ $1 = "latest" ]] || [[ $1 = "archive" ]] || [[ $1 = "dev-clean" ]] ; then
67+
rm -fr $dir/.doctrees
68+
fi
6969
mkdir -p $dir/_downloads
7070

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

0 commit comments

Comments
 (0)