Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions build-coatjava.sh
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,12 @@ notify_retrieval() {
# update an LFS submodule
download_lfs() {
cd $src_dir > /dev/null
git submodule update --init $1
if [ "$#" -gt 1 ]; then
GIT_LFS_SKIP_SMUDGE=1 git submodule update --init $1
for x in "${@:2}"; do $(cd $1 && git lfs pull --include $x); done
else
git submodule update --init $1
fi
cd - > /dev/null
}

Expand Down Expand Up @@ -266,7 +271,10 @@ if $auxDownloadMaps; then
case $auxRetrieval in
lfs)
notify_retrieval 'field maps' 'lfs'
download_lfs etc/data/magfield
download_lfs etc/data/magfield \
Symm_solenoid_r601_phi1_z1201_13June2018.dat \
Symm_torus_r2501_phi16_z251_24Apr2018.dat \
Full_torus_r251_phi181_z251_25Jan2021.dat
;;
cvmfs|https)
webDir=https://clasweb.jlab.org/clas12offline/magfield
Expand Down
Loading