Skip to content

Commit

Permalink
Add functionality to update dqm docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nothingface0 committed Aug 23, 2024
1 parent ef63d73 commit c93d403
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion deploy_dqmgui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,17 @@ compile_root() {
rm -rf $ROOT_TMP_DIR $ROOT_TMP_BUILD_DIR
}

# DQM machines-only functionality, if the local bash function
# is available
update_docs() {
if [ "$(type -t _update_cmssw_version_in_docs)" = "function" ]; then
echo "Updating DQM docs..."
prs=$(echo "$DMWM_PRS" | tr ',' ' ')
update_cmssw_version_in_docs "python_${PYTHON_VERSION}_deployment_${DMWM_GIT_TAG}_dqmgui_${DQMGUI_GIT_TAG}_root_${ROOT_GIT_TAG}" "$prs"
echo "Done"
fi
}

# Cleanup temporary directories, remove cronjobs
function _cleanup() {
rm -rf $ROOT_TMP_DIR $ROOT_TMP_BUILD_DIR $ROTOGLUP_TMP_DIR $CLASSLIB_TMP_DIR $DMWM_TMP_DIR $NUMERIC_TMP_DIR $DQMGUI_TMP_DIR
Expand Down Expand Up @@ -665,7 +676,8 @@ declare -a installation_steps=(preliminary_checks
install_d3
install_jsroot
clean_crontab
install_crontab)
install_crontab
update_docs)

# Parse command line arguments -- use <key>=<value> to override the flags mentioned above.
# e.g. do_install_yui=0
Expand Down

0 comments on commit c93d403

Please sign in to comment.