Skip to content

Commit

Permalink
Get .upsfiles and .updfiles from cvmfs artexternals.
Browse files Browse the repository at this point in the history
  • Loading branch information
kutschke committed Aug 2, 2023
1 parent 0118082 commit bff704d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions KinKal_to_UPS/kk2ups_install
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,22 @@ fi
# Where to find the files in the installer package
KINKAL_TO_UPS_DIR=`dirname $(readlink -f $0)`

# Where to find example .upsfiles and .updfiles.
exampleExternals="/cvmfs/mu2e.opensciencegrid.org/artexternals/"

# Intialize UPS repo if needed.
if ! [ -e ${upsRoot} ]; then
mkdir ${upsRoot}
cp -r ${KINKAL_TO_UPS_DIR}/.upsfiles ${upsRoot}
cp -r ${KINKAL_TO_UPS_DIR}/.updfiles ${upsRoot}
cp -r ${exampleExternals}/.upsfiles ${upsRoot}
cp -r ${exampleExternals}/.updfiles ${upsRoot}
fi

if ! [ -d ${upsRoot}/.upsfiles ]; then
cp -r ${KINKAL_TO_UPS_DIR}/.upsfiles ${upsRoot}
cp -r ${exampleExternals}/.upsfiles ${upsRoot}
fi

if ! [ -d ${upsRoot}/.updfiles ]; then
cp -r ${KINKAL_TO_UPS_DIR}/.updfiles ${upsRoot}
cp -r ${exampleExternals}/.updfiles ${upsRoot}
fi


Expand Down Expand Up @@ -193,3 +196,4 @@ unset bindir
unset incdir
unset upsdir
unset fqfile
unset exampleExternals

0 comments on commit bff704d

Please sign in to comment.