Skip to content
This repository has been archived by the owner on Nov 27, 2020. It is now read-only.

Commit

Permalink
Download spack from a specific tag
Browse files Browse the repository at this point in the history
  • Loading branch information
JavierCVilla committed Apr 15, 2019
1 parent e337948 commit 5fb6039
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jk-setup-spack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fi
SPACKDIR=$WORKSPACE/spack

if [ ! -d $SPACKDIR ]; then
git clone https://github.com/LLNL/spack.git $SPACKDIR
git clone https://github.com/HEP-FCC/spack.git $SPACKDIR
fi
export SPACK_ROOT=$SPACKDIR

Expand Down
13 changes: 11 additions & 2 deletions spack_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ while [ "$1" != "" ]; do
--weekday ) shift
weekday=$1
;;
--spack-tag ) spacktag=$1
;;
-h | --help ) usage
exit
;;
Expand Down Expand Up @@ -151,9 +153,16 @@ echo "Compiler: $PLATFORMCOMPILER"
echo "Mode: $MODE"

# Clone spack repo

# Use develop if there is no tags specified (use tags to reproduce releases)
if [[ "$spacktag" == "" ]]; then
spacktag="develop"
fi

echo "Cloning spack repo"
echo "git clone https://github.com/HEP-FCC/spack.git -b develop $TMPDIR/spack"
git clone https://github.com/HEP-FCC/spack.git -b develop $TMPDIR/spack
echo "git clone https://github.com/HEP-FCC/spack.git -b $spacktag $TMPDIR/spack"
git clone https://github.com/HEP-FCC/spack.git -b $spacktag $TMPDIR/spack
check_error $? "cloning spack repo from branch/tag: $spacktag"
export SPACK_ROOT=$TMPDIR/spack

# Setup new spack home
Expand Down

0 comments on commit 5fb6039

Please sign in to comment.