Skip to content
Snippets Groups Projects
Commit 0d93fdea authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

modified: bin/build_detector.sh

parent 3a13902e
Branches
No related tags found
1 merge request!5Add checks to build_detector script
...@@ -35,7 +35,7 @@ if [ -d "${JUGGLER_DETECTOR}" ]; then ...@@ -35,7 +35,7 @@ if [ -d "${JUGGLER_DETECTOR}" ]; then
fi fi
echo "Fetching ${JUGGLER_DETECTOR}" echo "Fetching ${JUGGLER_DETECTOR}"
git clone -b ${JUGGLER_DETECTOR_VERSION} --depth 1 https://eicweb.phy.anl.gov/EIC/detectors/${JUGGLER_DETECTOR}.git git clone -b ${JUGGLER_DETECTOR_VERSION} --depth 1 https://eicweb.phy.anl.gov/EIC/detectors/${JUGGLER_DETECTOR}.git
[[ -n "$?" ]] || exit 1 [[ ! "$?" == "0" ]] || exit 1
rm -rf "${JUGGLER_DETECTOR}/.git" rm -rf "${JUGGLER_DETECTOR}/.git"
## We need an up-to-date copy of the detector ## We need an up-to-date copy of the detector
...@@ -47,7 +47,7 @@ fi ...@@ -47,7 +47,7 @@ fi
echo "Fetching ${BEAMLINE_CONFIG}" echo "Fetching ${BEAMLINE_CONFIG}"
echo "git clone -b ${BEAMLINE_CONFIG_VERSION} --depth 1 https://eicweb.phy.anl.gov/EIC/detectors/${BEAMLINE_CONFIG}.git" 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 git clone -b ${BEAMLINE_CONFIG_VERSION} --depth 1 https://eicweb.phy.anl.gov/EIC/detectors/${BEAMLINE_CONFIG}.git
[[ -n "$?" ]] || exit 1 [[ ! "$?" == "0" ]] || exit 1
rm -rf "${BEAMLINE_CONFIG}/.git" rm -rf "${BEAMLINE_CONFIG}/.git"
## We also need an up-to-date copy of the accelerator. For now this is done ## We also need an up-to-date copy of the accelerator. For now this is done
...@@ -58,15 +58,15 @@ if [ -d accelerator ]; then ...@@ -58,15 +58,15 @@ if [ -d accelerator ]; then
fi fi
echo "Fetching accelerator" echo "Fetching accelerator"
git clone --depth 1 https://eicweb.phy.anl.gov/EIC/detectors/accelerator.git git clone --depth 1 https://eicweb.phy.anl.gov/EIC/detectors/accelerator.git
[[ -n "$?" ]] || exit 1 [[ ! "$?" == "0" ]] || exit 1
rm -rf "accelerator/.git" rm -rf "accelerator/.git"
## Now symlink the accelerator definition into the detector definition ## Now symlink the accelerator definition into the detector definition
echo "Linking accelerator definition into detector definition" echo "Linking accelerator definition into detector definition"
ln -s -f ${DETECTOR_PREFIX}/accelerator/eic ${DETECTOR_PATH}/eic ln -s -f ${DETECTOR_PREFIX}/accelerator/eic ${DETECTOR_PATH}/eic
[[ -n "$?" ]] || exit 1 [[ ! "$?" == "0" ]] || exit 1
ln -s -f ${DETECTOR_PREFIX}/${BEAMLINE_CONFIG}/${BEAMLINE_CONFIG} ${DETECTOR_PATH}/${BEAMLINE_CONFIG} ln -s -f ${DETECTOR_PREFIX}/${BEAMLINE_CONFIG}/${BEAMLINE_CONFIG} ${DETECTOR_PATH}/${BEAMLINE_CONFIG}
[[ -n "$?" ]] || exit 1 [[ ! "$?" == "0" ]] || exit 1
popd popd
## ============================================================================= ## =============================================================================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment