Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update.sh: build versioned parameters unconditionally
Browse files Browse the repository at this point in the history
we're always going to want to do this, and probably fold build_parameters.py into update.py
peterbarker committed Jan 27, 2025
1 parent 8136d73 commit 0a072b3
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions update.sh
Original file line number Diff line number Diff line change
@@ -132,20 +132,14 @@ find -name "parameters*rst" -delete # Clean possible built and cached parameters

END_UPDATES=$(date +%s)

DO_PARAM_VERSIONING=true
if $DO_PARAM_VERSIONING; then
progress "Starting to build multiple parameters pages"
python3 build_parameters.py || {
progress "build_parameters.py failed"
exit 1
}
END_BUILD_MPARAMS=$(date +%s)
MPARAMS_TIME=$(echo "($END_BUILD_MPARAMS - $END_UPDATES)" | bc)
progress "Time to run build_parameters.py: $MPARAMS_TIME seconds"
else
# we use this hwne calculating times, below
END_BUILD_MPARAMS=$END_UPDATES
fi
progress "Starting to build multiple parameters pages"
python3 build_parameters.py || {
progress "build_parameters.py failed"
exit 1
}
END_BUILD_MPARAMS=$(date +%s)
MPARAMS_TIME=$(echo "($END_BUILD_MPARAMS - $END_UPDATES)" | bc)
progress "Time to run build_parameters.py: $MPARAMS_TIME seconds"

progress "Starting to build the wiki"
# python3 update.py --clean --parallel 4 # Build without versioning for parameters. It is better for editing wiki.

0 comments on commit 0a072b3

Please sign in to comment.