Repository navigation
Expand file tree
/
Copy pathupdateLocalDocumentation.sh
More file actions
executable file
·624 lines (476 loc) · 19.8 KB
/
Copy pathupdateLocalDocumentation.sh
File metadata and controls
executable file
·624 lines (476 loc) · 19.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
#!/usr/bin/env bash
#
# Generation of icaruscode Doxygen documentation:
# * fetches the latest Doxygen tag files for LArSoft and ROOT
# (at most once per day)
# * sets up the latest UPS version of `icaruscode` (needed for depedencies)
# * checks out the latest tag of `icaruscode` `master` branch
# * runs Doxygen (output is expected in the ${OutputDir} directory)
#
# -----------------------------------------------------
# Implementation note
# -----------------------------------------------------
#
# This script currently does not support generating documentation from multiple
# repositories. To implement such support, a possible way is to have the user
# specify a list of repositories including a main one (say, the first one)
# which is where the Doxygen configuration file is. Then that configuration file
# is processed to include as INPUT all the repositories, instead of just one.
# Some additional work is needed to achieve that.
#
#
# Changes
# --------
#
# 20200426 (petrillo@slac.stanford.edu) [v1.0]
# first version in `icaruscode`; metadata version: 1
# 20200520 (petrillo@slac.stanford.edu) [v1.1]
# using GitHub sources
# 20201009 (petrillo@slac.stanford.edu) [v1.2]
# support additional repositories; metadata version: 2
# 20210302 (petrillo@slac.stanford.edu) [v1.3]
# support for non-`master` release branches (like in `sbnobj`);
# in case of tagged target, use the versions from UPS for all repositories
#
# -- BEGIN -- boilerplate settings and library loading -------------------------
SCRIPTNAME="$(basename "$0")"
SCRIPTDIR="$(dirname "$0")"
declare LibraryToLoad
for LibraryToLoad in 'settings.sh' 'experiment_settings.sh' 'utilities.sh' ; do
source "${SCRIPTDIR%/}/${LibraryToLoad}" || exit $?
done
unset LibraryToLoad
# -- END -- boilerplate settings and library loading ---------------------------
# ------------------------------------------------------------------------------
SCRIPTVERSION="1.3"
declare -ri MetadataVersion='2' # integral numbers please
# ------------------------------------------------------------------------------
function printHelp() {
cat <<EOH
Generates the documentation of ${ExperimentName}.
Usage: ${SCRIPTNAME} [options]
Supported options:
--experiment=EXPERIMENTNAME [autodetect]
the name of the experiment (e.g. 'MicroBooNE')
--reponame=REPONAME [autodetect]
the name of the repository (e.g. 'uboonecode')
--branch=BRANCH , --tag=TAG , --commit=COMMIT
use this branch, tag or commit instead of branch '${DefaultBranch}';
the content of the repository will be changed
--currentbranch , -c
do not change the branch of the GIT repository; if the repository is
downloaded, its default branch is used ('${DefaultBranch}');
otherwise, the current status is used
--clean
removes the old documentation if present; by default, this does not happen
--force-tags
forces the update of Doxygen tag files even if they have been downloaded
since less than one day
--version , -V
prints the script version and exits (hint: it's version ${SCRIPTVERSION}
--help , -h , -?
prints this usage message and exits
EOH
} # printHelp()
function printVersion() {
echo "${SCRIPTNAME} version ${SCRIPTVERSION}."
} # printVersion()
# ------------------------------------------------------------------------------
function UpdateTag() {
#
# Downloads the specified tag file and renames it as directed, if older than Age
#
# Usage: UpdateTag TagFile URL Description
#
local -r Age='yesterday'
local TagFile="$1"
local URL="$2"
shift 2
local Description="$*"
local TempFile="$(mktemp --dry-run )"
touch --date="$Age" "$TempFile"
if [[ "$TagFile" -nt "$TempFile" ]] && isFlagUnset ForceTags ; then
echo "Keeping '${TagFile}' (run with \`--force-tags\` to override)."
else
echo "Fetching tag file for ${Description} ('${TagFile}' from '${URL}')"
wget --output-document "$TagFile" "$URL"
touch "$TagFile"
fi
rm "$TempFile"
while true ; do
local FileType="$(file --brief --mime-type "$TagFile")"
case "$FileType" in
( 'application/xml' ) break ;; # already ok
( 'application/x-gzip' )
echo "Uncompressing tag file '${TagFile}'${Description:+ (${Description})} (${FileType})"
if [[ ! "$TagFile" =~ \.gz$ ]]; then
local NewName="${TagFile}.gz"
mv "$TagFile" "$NewName"
TagFile="$NewName"
fi
gunzip "$TagFile"
TagFile="${TagFile%.gz}"
;;
( * )
ERROR 1 "Tag file '${TagFile}'${Description:+ (${Description})} of unexpected type ${FileType}."
break
;;
esac
done
} # UpdateTag()
function UpdateROOTtag() {
local ROOTVersion
ROOTVersion="$(DetectROOTversion)"
LASTFATAL "Can't detect ROOT version!" # did set up fail?
local ROOTVersionTag="${ROOTVersion%/*}"
ROOTVersionTag="${ROOTVersionTag//.}"
echo "Fetching Doxygen tag for ROOT version ${ROOTVersion}"
UpdateTag 'ROOT.tag' "https://root.cern/doc/v${ROOTVersionTag}/ROOT.tag.gz" "ROOT"
} # UpdateROOTtag()
function UpdateLArSoftTag() {
# local LArSoftVersion="$(UPSversion 'larsoft')"
# Only one documented version: hope you like it
UpdateTag 'LArSoft.tag' 'https://code-doc.larsoft.org/docs/latest/html/doxytags-larsoft.xml' "LArSoft"
} # UpdateLArSoftTag()
function PrepareDoxyfile() {
local -r DoxyfileTemplate="$1"
local -r Doxyfile="$2"
# special variables:
ALL_REPO_PATHS=
local CodeRepo
for CodeRepo in "${CodeRepoNames[@]}" ; do
ALL_REPO_PATHS+="${ALL_REPO_PATHS:+ }${CodeRepoPaths[$CodeRepo]}"
done
ReplaceEnvironmentVariables "$DoxyfileTemplate" "$Doxyfile"
unset ALL_REPO_PATHS
} # PrepareDoxyfile()
function RestoreGITrepository() {
local Path="$1"
local Commit="$2"
local -i Stashed="${3:-0}"
# restore the status of the repository
if [[ -n "$Commit" ]]; then
echo "Restoring the repository (to ${Commit})"
git -C "$Path" checkout "$Commit"
fi
if [[ -n "$Commit" ]]; then
echo "Restoring unstaged content of repository"
isFlagSet Stashed && git -C "$Path" stash pop --quiet
fi
} # RestoreGITrepository()
################################################################################
declare -a CodeRepoNames=( )
declare -A CodeRepoPaths=( )
declare -Ai NewGITclones=( )
declare -Ai GITstashedRepos=( )
declare -A GIToldCommits=( )
function PrepareRepository() {
#
# PrepareRepository CodeRepoName RequestedCodeBranch
#
local -r CodeRepoName="$1"
local -r RequestedCodeBranch="$2"
# constraint: it needs to be in the current directory
local CodeRepoPath="$CodeRepoName"
CodeRepoPaths[$CodeRepoName]="$CodeRepoPath"
local NewGITclone=0
local -i res=0
if [[ ! -r "${CodeRepoPath}/.git" ]]; then
local -a GitSources=(
$(GitHubRemoteURL "$CodeRepoName" "$GitHubExperimentGroup" )
$(RedmineGITremoteURL "$CodeRepoName")
)
for GitSource in "${GitSources[@]}" ; do
echo "Attempting to clone the GIT source tree of '${CodeRepoName}' from '${GitSource}'"
git clone "$GitSource" "$CodeRepoName" >&2
res=$?
[[ $res == 0 ]] && break
echo " (failed)"
done
[[ -r "${CodeRepoPath}/.git" ]] || FATAL 1 "Could not download '${CodeRepoName}' code!"
NewGITclone=1
fi
NewGITclones["$CodeRepoName"]="$NewGITclone"
local -i GITstashed
local GIToldCommit
if [[ "$RequestedCodeBranch" != 'HEAD' ]]; then
local -r CodeBranch="${RequestedCodeBranch:-${ReleaseBranches[$CodeRepoName]:-${DefaultBranch}}}"
if isFlagUnset NewGITclone ; then
echo "Fetching updates for the existing GIT source tree of '${CodeRepoPath}'"
git -C "$CodeRepoPath" fetch
fi
# remove everything that could bother our update;
# git stash does not tell a script if a stash was created
local -i nStashes="$(cd "$CodeRepoPath" && git stash list | wc -l)"
git -C "$CodeRepoPath" stash save --quiet -- "${SCRIPTNAME} temporary for Doxygen generation - $(date)"
LASTFATAL "Failed to save local changes in '${CodeRepoPath}'. Giving up."
local -i nNewStashes="$(cd "$CodeRepoPath" && git stash list | wc -l)"
if [[ "$nNewStashes" -gt "$nStashes" ]]; then
echo "Changes in GIT repository temporary stashed."
GITstashed+=( "$CodeRepoName" )
fi
# also keep track of where we are
GIToldCommit="$(cd "$CodeRepoPath" && git reflog -n 1 --format='format:%H')"
local OldScriptChecksum="$(md5sum < "$0")"
git -c 'advice.detachedHead=false' -C "$CodeRepoPath" checkout "$CodeBranch"
local -i res=$?
if [[ $res != 0 ]]; then
RestoreGITrepository "$CodeRepoPath" "$GIToldCommit" "$GITstashed"
if [[ -n "$RequestedCodeBranch" ]]; then
FATAL "$res" "Failed to check out branch '${CodeBranch}' of GIT repository ${CodeRepoPath}."
else
echo "Failed to check out branch '${CodeBranch}' of GIT repository ${CodeRepoPath}."
fi
fi
if [[ -n "$CodeBranch" ]] && ! hasGITtag "$CodeBranch" ; then
echo "Updating the GIT branch..."
git -C "$CodeRepoPath" rebase
if [[ $res != 0 ]]; then
RestoreGITrepository "$CodeRepoPath" "$GIToldCommit" "$GITstashed"
echo "Failed to update (rebase) branch '${CodeBranch}' of GIT repository ${CodeRepoPath}."
fi
fi
local GITnewCommit="$(cd "$CodeRepoPath" && git reflog -n 1 --format='format:%H')"
[[ "$GITnewCommit" == "$GIToldCommit" ]] && unset GIToldCommit # no change, no need to track
local NewScriptChecksum="$(md5sum < "$0")"
if [[ "$OldScriptChecksum" != "$NewScriptChecksum" ]]; then
FATAL 1 "The attempt to update the repository '${CodeRepoPath}' on the fly caused a change in this script ('${SCRIPTNAME}'). Please update the repository manually and try again."
RestoreGITrepository "$CodeRepoPath" "$GIToldCommit" "$GITstashed"
fi
fi
GIToldCommits["$CodeRepoName"]="$GIToldCommit"
GITstashedRepos["$CodeRepoName"]="$GITstashed"
} # PrepareRepository()
function RestoreAllRepositories() {
# restore the status of the repositories from stored information
local CodeRepoName
for CodeRepoName in "${CodeRepoNames[@]}" ; do
RestoreGITrepository "${CodeRepoPaths[$CodeRepoName]}" "${GIToldCommits[$CodeRepoName]}" "${GITstashedRepos[$CodeRepoName]:-0}"
done
} # RestoreAllRepositories()
function CheckOutSources() {
#
# find a Doxygen configuration file
#
local -r ExperimentName="$1"
shift
local RepoNames=( "$@" )
[[ -z "${RepoNames[0]}" ]] && RepoNames[0]="$(ExperimentCodeProduct "$ExperimentName" )"
local ExperimentCodeName="${RepoNames[0]}"
# in the future this constraint can be relaxed:
local ExperimentCodeRepoPath="$ExperimentCodeName"
local -r RequestedCodeBranch="$RequestedExperimentCodeBranch"
# all the same branch, just because of the simpler interface
local RequestedRepoVersion
for CodeRepoName in "${RepoNames[@]}" ; do
if [[ "$CodeRepoName" != "$ExperimentCodeName" ]]; then
RequestedRepoVersion="$(UPSversion "$CodeRepoName")"
else
false # trigger the next conditio
fi
[[ $? == 0 ]] || RequestedRepoVersion="$RequestedCodeBranch"
echo " === preparing repository '${CodeRepoName}' (${RequestedRepoVersion}) === "
PrepareRepository "$CodeRepoName" "$RequestedRepoVersion"
done
echo " === all repositories prepared === "
local -r ExperimentCodeVersion="$(cd "$ExperimentCodeRepoPath" && git describe --abbrev=0)" # use as tag
# special: if no branch was requested in particular, we move to the tagged version of it
if [[ -z "$RequestedCodeBranch" ]]; then
for CodeRepoName in "${RepoNames[@]}" ; do
echo " === Picking tag ${ExperimentCodeVersion} for ${CodeRepoName} ==="
local CodeRepoPath="${CodeRepoPaths[$CodeRepoName]}"
git -C "$CodeRepoPath" checkout "$ExperimentCodeVersion" || echo "${CodeRepoName} does not have tag '${ExperimentCodeVersion}', we'll use the current branch ($(git -C "$CodeRepoPath" describe))."
done
echo " === tag ${ExperimentCodeVersion} selection completed ==="
fi
GitDescription="$(cd "$ExperimentCodeRepoPath" && git describe 2> /dev/null)"
[[ $? == 0 ]] && echo "Repository status: ${GitDescription}"
return 0
} # CheckOutSources()
################################################################################
function RunDoxygen() {
#
# find a Doxygen configuration file
#
local -r ExperimentName="$1"
shift
local -a AdditionalRepositories=( "$@" )
local ExperimentCodeName="$(ExperimentCodeProduct "$ExperimentName" )"
CodeRepoNames=( "$ExperimentCodeName" "${AdditionalRepositories[@]}" )
CheckOutSources "$ExperimentName" "${CodeRepoNames[@]}"
local MasterDoxyfile
# search for a Doxyfile in the current directory first
MasterDoxyfile="$(FindDoxyfile "$ExperimentName" "$(pwd)" )"
LASTFATAL "Can't find a doxygen configuration file for '${ExperimentName}'"
local DateTag="$(date '+%Y%m%d')"
local DoxygenLog="${LogDir%/}/$(basename "${MasterDoxyfile%.doxy*}")-${DateTag}.log"
# in the future this constraint can be relaxed:
local ExperimentCodeRepoPath="${CodeRepoPaths[$ExperimentCodeName]}"
local -r ExperimentCodeVersion="$(cd "$ExperimentCodeRepoPath" && git describe --abbrev=0)" # use as tag
mkdir -p "$LogDir"
local -r Doxyfile="${TMPDIR:-/tmp}/${ExperimentCodeName}-${ExperimentCodeVersion}.doxy"
echo "Creating Doxygen configuration from '${MasterDoxyfile}'..."
PrepareDoxyfile "$MasterDoxyfile" "$Doxyfile"
cat <<EOB
Now starting Doxygen (log file: '${DoxygenLog}')
--------------------------------------------------------------------------------
EOB
local ConfiguredOutputDir MetadataFile
ConfiguredOutputDir="$(ExtractValueFromDoxyfile 'HTML_OUTPUT' "$Doxyfile")"
if [[ $? == 0 ]]; then
echo "Directory for HTML output: '${ConfiguredOutputDir}'"
MetadataFile="${ConfiguredOutputDir%/}/${MetadataFileRelPath}"
local OldRunDate OldExperimentCodeName OldVersion
OldRunDate="$(ExtractFromMetadata 'Date' "$MetadataFile")"
OldExperimentCodeName="$(ExtractFromMetadata 'ExperimentCode' "$MetadataFile")"
OldVersion="$(ExtractFromMetadata 'CodeVersion' "$MetadataFile")"
[[ -n "$OldRunDate" ]] && echo "Existing output created or updated on ${OldRunDate} for ${OldExperimentCodeName} ${OldVersion}."
else
echo "Could not detect the HTML output directory from '${Doxyfile}'"
ConfiguredOutputDir='' # probably redundant
fi
if [[ -n "$ConfiguredOutputDir" ]] && [[ -d "$ConfiguredOutputDir" ]]; then
if [[ -n "$OldVersion" ]] && [[ -n "$OldExperimentCodeName" ]] \
&& [[ "$OldVersion" == "$ExperimentCodeVersion" ]] \
&& [[ "$OldExperimentCodeName" == "$ExperimentCodeName" ]] \
&& isFlagUnset CleanOldDocs
then
echo "Existing output not removed as it is from the same version (run with \`--clean\` to override)."
else
echo "Removing old output ('${ConfiguredOutputDir}')..."
rm -rf "$ConfiguredOutputDir"
fi
fi
local -r DoxygenName='doxygen'
local doxygen="$(which "${DoxygenName[@]}")"
local -a Cmd=( $doxygen "$Doxyfile" "&>" "$DoxygenLog" )
echo "${Cmd[@]}"
eval "${Cmd[@]}"
local -i ExitCode=$?
if [[ -d "$ConfiguredOutputDir" ]]; then
mv "$Doxyfile" "$ConfiguredOutputDir" && echo "Doxygen configuration copied into '${ConfiguredOutputDir}'."
fi
# restore the status of the repository
RestoreAllRepositories
if [[ -d "$ConfiguredOutputDir" ]]; then
mkdir -p "$(dirname "$MetadataFile")"
cat <<EOB
Writing metadata into '${MetadataFile}'.
EOB
### BEGIN metadata version 1:
cat <<EOM > "$MetadataFile"
MetadataVersion = '${MetadataVersion}'
Experiment = '${ExperimentName}'
Date = '$(date)'
Host = '$(hostname)'
User = '$(whoami)'
Configuration = '${MasterDoxyfile}'
ExperimentCode = '${ExperimentCodeName}'
CodeVersion = '${ExperimentCodeVersion:-"n/a"}'
GITreference = '${GitDescription:-"n/a"}'
WordDirectory = '$(pwd)'
CommandLine = '${Cmd[@]}'
DoxygenPath = '${doxygen}'
DoxygenVersion = '$($doxygen --version)'
LogFile = '${DoxygenLog}'
ExitCode = '${ExitCode}'
EOM
### END metadata version 1
### BEGIN metadata version 2:
cat <<EOM >> "$MetadataFile"
AdditionalRepos = ( ${AdditionalRepositories[@]} )
EOM
### END metadata version 2
fi
cat <<EOB
${ExperimentCodeVersion:+"This was for ${ExperimentCodeName} ${ExperimentCodeVersion}."}
--------------------------------------------------------------------------------
Doxygen completed its execution.
EOB
return $ExitCode
} # RunDoxygen()
################################################################################
### Start here!
################################################################################
#
# parameter parsing
#
declare -i NoMoreOptions
declare -i DoVersion=0 DoHelp=0
declare -i CleanOldDocs=0 ForceTags=0 UpdateBranch=1
declare RequestedExperimentCodeBranch
declare ExitWithCode
declare Param
for (( iParam = 1 ; iParam <= $# ; ++iParam )); do
Param="${!iParam}"
if isFlagUnset NoMoreOptions && [[ "${Param:0:1}" == '-' ]]; then
case "$Param" in
( '--experiment='* ) ExperimentName="${Param#--*=}" ;;
( '--reponame='* ) ExperimentCodeName="${Param#--*=}" ;;
( '--branch='* | '--tag='* | '--commit='* )
RequestedExperimentCodeBranch="${Param#--*=}" ;;
( '--currentbranch' | '-c' ) RequestedExperimentCodeBranch='HEAD' ;;
( '--clean' | '-C' ) CleanOldDocs=1 ;;
( '--force-tags' ) ForceTags=1 ;;
( '--version' | '-V' ) DoVersion=1 ;;
( '--help' | '-h' | '-?' ) DoHelp=1 ;;
( '-' | '--' ) NoMoreOptions=1 ;;
( * )
ERROR "Unknown option: '${Param}'."
ExitWithCode=1
esac
else
PositionalArguments+=( "$Param" )
fi
done
if [[ "${#PositionalArguments[@]}" -gt 0 ]]; then
FATAL 1 "Found ${#PositionalArguments[@]} spurious arguments on command line: ${PositionalArguments[@]}."
fi
: ${ExperimentName:="$(FindExperiment)"}
LASTFATAL "Can't detect the experiment name."
: ${ExperimentCodeName:="$(ExperimentCodeProduct "$ExperimentName")"}
LASTFATAL "Can't put together the experiment code repository name for '${ExperimentName}'."
if isFlagSet DoVersion ; then
printVersion
[[ -z "$ExitWithCode" ]] && ExitWithCode=0
fi
if isFlagSet DoHelp ; then
printHelp
[[ -z "$ExitWithCode" ]] && ExitWithCode=0
fi
[[ -n "$ExitWithCode" ]] && exit "$ExitWithCode"
################################################################################
declare -i nErrors
cat <<EOB
================================================================================
Set up
--------------------------------------------------------------------------------
EOB
GITrepoName="$(GITrepositoryName)"
[[ $? == 0 ]] && [[ "$GITrepoName" == "$ExperimentCodeName" ]] && FATAL 1 "Please do not run this script from within a GIT repository '${ExperimentCodeName}'."
ExperimentSetup "$ExperimentName"
LASTFATAL "Set up not completed, can't proceed."
cat <<EOB
================================================================================
ROOT tag
--------------------------------------------------------------------------------
EOB
UpdateROOTtag || let ++nErrors
cat <<EOB
================================================================================
LArSoft tag
--------------------------------------------------------------------------------
EOB
UpdateLArSoftTag || let ++nErrors
cat <<EOB
================================================================================
All setup done${nErrors:+" (with ${nErrors})"}
--------------------------------------------------------------------------------
EOB
[[ -z "$nErrors" ]] || exit 1
cat <<EOB
================================================================================
Now running Doxygen
--------------------------------------------------------------------------------
EOB
RunDoxygen "$ExperimentName" "${AdditionalRepoNames[@]}"