Skip to content

Commit

Permalink
Merge pull request #388 from boegel/2023.06-software.eessi.io_script-…
Browse files Browse the repository at this point in the history
…init-tarball

update script to create init tarball for software.eessi.io
  • Loading branch information
bedroge authored Nov 25, 2023
2 parents 3f10a61 + ad0a5d9 commit e9b9da6
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 e9b9da6

Please sign in to comment.