Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
common_bench
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
benchmarks
common_bench
Merge requests
!73
Fix to be generic and common to all detectors again.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix to be generic and common to all detectors again.
non_epic_fix
into
master
Overview
0
Commits
2
Pipelines
0
Changes
4
Merged
Whitney Armstrong
requested to merge
non_epic_fix
into
master
1 year ago
Overview
0
Commits
2
Pipelines
0
Changes
4
Expand
modified: README.md modified: bin/build_detector.sh modified: bin/env.sh modified: bin/print_env.sh
0
0
Merge request reports
Compare
master
version 1
31b641ce
1 year ago
master (base)
and
latest version
latest version
60dda7c0
2 commits,
1 year ago
version 1
31b641ce
1 commit,
1 year ago
4 files
+
56
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
bin/build_detector.sh
+
27
−
0
Options
@@ -48,6 +48,33 @@ fi
rm
-rf
"
${
DETECTOR
}
/.git"
popd
if
[
"
${
BEAMLINE
}
"
]
;
then
pushd
${
DETECTOR_PREFIX
}
## We need an up-to-date copy of the detector
## start clean to avoid issues...
if
[
-d
"
${
BEAMLINE
}
"
]
;
then
echo
"cleaning up
${
BEAMLINE
}
"
mv
"
${
BEAMLINE
}
"
"
$(
mktemp
)
-
${
BEAMLINE
}
"
fi
echo
"Fetching
${
BEAMLINE
}
"
if
[
-n
"
${
BEAMLINE_DEPLOY_TOKEN_USERNAME
:-}
"
-a
-n
"
${
BEAMLINE_DEPLOY_TOKEN_PASSWORD
:-}
"
]
;
then
DEPLOY_TOKEN
=
"
${
BEAMLINE_DEPLOY_TOKEN_USERNAME
}
:
${
BEAMLINE_DEPLOY_TOKEN_PASSWORD
}
@"
echo
"Deploy token for
${
BEAMLINE_DEPLOY_TOKEN_USERNAME
}
is masked in the next line."
else
DEPLOY_TOKEN
=
""
fi
echo
"git clone -b
${
BEAMLINE_VERSION
}
--depth 1
${
BEAMLINE_REPOSITORYURL
:-
https
://eicweb.phy.anl.gov/EIC/detectors/
${
BEAMLINE
}
.git
}
${
BEAMLINE
}
"
git clone
-b
${
BEAMLINE_VERSION
}
--depth
1
${
BEAMLINE_REPOSITORYURL
:-
https
://
${
DEPLOY_TOKEN
}
eicweb
.phy.anl.gov/EIC/detectors/
${
BEAMLINE
}
.git
}
${
BEAMLINE
}
[[
"
$?
"
==
"0"
]]
||
exit
1
rm
-rf
"
${
BEAMLINE
}
/.git"
ln
-s
-f
${
DETECTOR_PREFIX
}
/
${
BEAMLINE
}
/
${
BEAMLINE
}
${
DETECTOR_PATH
}
/
${
BEAMLINE
}
[[
"
$?
"
==
"0"
]]
||
exit
1
popd
fi
## =============================================================================
## Step 2: Compile and install the detector definition
echo
"Building and installing the
${
DETECTOR
}
package"
Loading