#!/bin/bash # usage function usage() { echo "Usage: $0 " exit 1 } # working directory where spack and packages will be installed if [ $# -ne 1 ] ; then usage else SPACKDIR=$1 fi # setup my spack source /cvmfs/larsoft.opensciencegrid.org/spack-packages/setup-env.sh spack load fermi-spack-tools@main make_subspack --with_padding /cvmfs/larsoft.opensciencegrid.org/spack-packages/ ${SPACKDIR} spack unload fermi-spack-tools . ${SPACKDIR}/setup-env.sh spack cd -r # create SAND repo SANDREPO="${SPACK_ROOT}/var/spack/repos/sand" mkdir -p ${SANDREPO}/packages curl -o ${SANDREPO}/repo.yaml https://raw.githubusercontent.com/wiki/DUNE/sandreco/files/spack/sand-repo.yaml spack repo add ${SANDREPO} # configure edepsim and sandreco packages mkdir -p ${SANDREPO}/packages/edepsim curl -o ${SANDREPO}/packages/edepsim/package.py https://raw.githubusercontent.com/wiki/DUNE/sandreco/files/spack/edepsim-package.py # install sandreco spack install edepsim