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
Commits
2cfd6cfb
Commit
2cfd6cfb
authored
4 years ago
by
Whitney Armstrong
Browse files
Options
Downloads
Patches
Plain Diff
Added checks for successful clone/linking
parent
4a9fbaa4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/build_detector.sh
+5
-0
5 additions, 0 deletions
bin/build_detector.sh
with
5 additions
and
0 deletions
bin/build_detector.sh
+
5
−
0
View file @
2cfd6cfb
...
...
@@ -35,6 +35,7 @@ if [ -d "${JUGGLER_DETECTOR}" ]; then
fi
echo
"Fetching
${
JUGGLER_DETECTOR
}
"
git clone
-b
${
JUGGLER_DETECTOR_VERSION
}
--depth
1 https://eicweb.phy.anl.gov/EIC/detectors/
${
JUGGLER_DETECTOR
}
.git
[[
-n
"
$?
"
]]
||
exit
1
## We need an up-to-date copy of the detector
## start clean to avoid issues...
...
...
@@ -45,6 +46,7 @@ fi
echo
"Fetching
${
BEAMLINE_CONFIG
}
"
echo
"git clone -b
${
BEAMLINE_CONFIG_VERSION
}
--depth 1 https://eicweb.phy.anl.gov/EIC/detectors/
${
BEAMLINE_CONFIG
}
.git"
git clone
-b
${
BEAMLINE_CONFIG_VERSION
}
--depth
1 https://eicweb.phy.anl.gov/EIC/detectors/
${
BEAMLINE_CONFIG
}
.git
[[
-n
"
$?
"
]]
||
exit
1
## We also need an up-to-date copy of the accelerator. For now this is done
## manually. Down the road we could maybe automize this with cmake
...
...
@@ -54,11 +56,14 @@ if [ -d accelerator ]; then
fi
echo
"Fetching accelerator"
git clone
--depth
1 https://eicweb.phy.anl.gov/EIC/detectors/accelerator.git
[[
-n
"
$?
"
]]
||
exit
1
## Now symlink the accelerator definition into the detector definition
echo
"Linking accelerator definition into detector definition"
ln
-s
-f
${
DETECTOR_PREFIX
}
/accelerator/eic
${
DETECTOR_PATH
}
/eic
[[
-n
"
$?
"
]]
||
exit
1
ln
-s
-f
${
DETECTOR_PREFIX
}
/
${
BEAMLINE_CONFIG
}
/
${
BEAMLINE_CONFIG
}
${
DETECTOR_PATH
}
/
${
BEAMLINE_CONFIG
}
[[
-n
"
$?
"
]]
||
exit
1
popd
## =============================================================================
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment