Skip to content

Commit

Permalink
update script to create init tarball for software.eessi.io
Browse files Browse the repository at this point in the history
  • Loading branch information
boegel committed Nov 25, 2023
1 parent 3f10a61 commit ad0a5d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions create_directory_tarballs.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/bash

SOFTWARE_LAYER_TARBALL_URL=https://github.com/EESSI/software-layer/tarball/2023.06

set -eo pipefail

if [ $# -ne 1 ]; then
Expand All @@ -11,6 +9,8 @@ fi

version=$1

SOFTWARE_LAYER_TARBALL_URL="https://github.com/EESSI/software-layer/tarball/${version}-software.eessi.io"

TOPDIR=$(dirname $(realpath $0))

source $TOPDIR/scripts/utils.sh
Expand All @@ -28,9 +28,9 @@ mkdir "${tartmp}/${version}"
tarname="eessi-${version}-init-$(date +%s).tar.gz"
curl -Ls ${SOFTWARE_LAYER_TARBALL_URL} | tar xzf - -C "${tartmp}/${version}" --strip-components=1 --no-wildcards-match-slash --wildcards '*/init/'
source "${tartmp}/${version}/init/minimal_eessi_env"
if [ "${EESSI_PILOT_VERSION}" != "${version}" ]
if [ "${EESSI_VERSION}" != "${version}" ]
then
fatal_error "Specified version ${version} does not match version ${EESSI_PILOT_VERSION} in the init files!"
fatal_error "Specified version ${version} does not match version ${EESSI_VERSION} in the init files!"
fi
tar czf "${tarname}" -C "${tartmp}" "${version}"
rm -rf "${tartmp}"
Expand Down

0 comments on commit ad0a5d9

Please sign in to comment.