Skip to content
Snippets Groups Projects
Commit 292946b5 authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

remove caching for source codes, as it was introducing bugs

parent 87ffd3e7
No related branches found
No related tags found
1 merge request!44Resolve "Fix detector build"
...@@ -27,26 +27,33 @@ source options/env.sh ...@@ -27,26 +27,33 @@ source options/env.sh
pushd ${DETECTOR_PREFIX} pushd ${DETECTOR_PREFIX}
## We need an up-to-date copy of the detector ## We need an up-to-date copy of the detector
if [ ! -d ${JUGGLER_DETECTOR} ]; then ## start clean to avoid issues...
echo "Fetching ${JUGGLER_DETECTOR}" if [ -d ${JUGGLER_DETECTOR} ]; then
git clone -b ${JUGGLER_DETECTOR_VERSION} https://eicweb.phy.anl.gov/EIC/detectors/${JUGGLER_DETECTOR}.git echo "cleaning up ${JUGGLER_DETECTOR}"
else rm -rf ${JUGGLER_DETECTOR}
echo "Updating ${JUGGLER_DETECTOR}"
pushd ${JUGGLER_DETECTOR}
git pull --ff-only
popd
fi fi
echo "Fetching ${JUGGLER_DETECTOR}"
git clone -b ${JUGGLER_DETECTOR_VERSION} https://eicweb.phy.anl.gov/EIC/detectors/${JUGGLER_DETECTOR}.git
#else
#echo "Updating ${JUGGLER_DETECTOR}"
#pushd ${JUGGLER_DETECTOR}
#git pull --ff-only
#popd
#fi
## 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
## manually. Down the road we could maybe automize this with cmake ## manually. Down the road we could maybe automize this with cmake
if [ ! -d accelerator ]; then if [ ! -d accelerator ]; then
echo "Fetching accelerator" echo "cleaning up accelerator"
git clone https://eicweb.phy.anl.gov/EIC/detectors/accelerator.git rm -rf accelerator
else
echo "Updating accelerator"
pushd accelerator
git pull --ff-only
popd
fi fi
echo "Fetching accelerator"
git clone https://eicweb.phy.anl.gov/EIC/detectors/accelerator.git
#else
# echo "Updating accelerator"
# pushd accelerator
# git pull --ff-only
# popd
#fi
## 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment