GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — spack-stack/setup.sh at develop · JCSDA/spack-stack Expand file tree/ Copy pathsetup.shMore file actions executable file ·62 lines (56 loc) · 2.08 KB / Copy pathsetup.shFile metadata and controlsexecutable file ·62 lines (56 loc) · 2.08 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 # https://stackoverflow.com/questions/59895/how-can-i-get-the-source-directory-of-a-bash-script-from-within-the-script-itsel # Portable way to get current directory SPACK_STACK_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) hostname=$(hostname -f) case $hostname in *acorn.wcoss2*) . ${SPACK_STACK_DIR}/configs/sites/tier1/wcoss2/setup.sh ;; *atlantis*) . ${SPACK_STACK_DIR}/configs/sites/tier1/atlantis/setup.sh ;; *barfoot*) . ${SPACK_STACK_DIR}/configs/sites/tier2/barfoot/setup.sh ;; *blueback*) . ${SPACK_STACK_DIR}/configs/sites/tier1/blueback/setup.sh ;; *derecho*) . ${SPACK_STACK_DIR}/configs/sites/tier1/derecho/setup.sh ;; *fran*) . ${SPACK_STACK_DIR}/configs/sites/tier2/fran/setup.sh ;; *Hercules*) . ${SPACK_STACK_DIR}/configs/sites/tier1/hercules/setup.sh ;; *jean*) . ${SPACK_STACK_DIR}/configs/sites/tier2/jean/setup.sh ;; *narwhal*) . ${SPACK_STACK_DIR}/configs/sites/tier1/narwhal/setup.sh ;; *nautilus*) . ${SPACK_STACK_DIR}/configs/sites/tier1/nautilus/setup.sh ;; *Orion*) . ${SPACK_STACK_DIR}/configs/sites/tier1/orion/setup.sh ;; *wheat*) . ${SPACK_STACK_DIR}/configs/sites/tier2/wheat/setup.sh ;; esac export SPACK_STACK_DIR echo "Setting environment variable SPACK_STACK_DIR to ${SPACK_STACK_DIR}" # Avoid using ~/.spack directory for caching, spack repo clones, etc. export SPACK_DISABLE_LOCAL_CONFIG=true export SPACK_USER_CACHE_PATH=${SPACK_STACK_DIR}/cache/user_cache echo "Enabling shell completions for spack-stack extensions..." ${SPACK_STACK_DIR}/spack/bin/spack commands --update-completion source ${SPACK_STACK_DIR}/spack/share/spack/setup-env.sh echo "Sourcing spack environment ${SPACK_STACK_DIR}/spack/share/spack/setup-env.sh" # Avoid using ~/.spack directory for bootstraping echo "Changing bootstrap path to $(spack bootstrap root '$spack/bootstrap')" # Get the current hash of the spack-stack code export SPACK_STACK_HASH=`cd $SPACK_STACK_DIR && git rev-parse --short HEAD` echo "Current hash of spack-stack is ${SPACK_STACK_HASH}" |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |