From 028f935f32c9bc7eb3a84f987c50159beaceab0d Mon Sep 17 00:00:00 2001
From: Neves-P
Date: Fri, 8 Nov 2024 14:16:24 +0100
Subject: [PATCH] Actually set install_prefix_dir
---
create_tarball.sh | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/create_tarball.sh b/create_tarball.sh
index fc0674d9bc..ee70baaca1 100755
--- a/create_tarball.sh
+++ b/create_tarball.sh
@@ -4,15 +4,16 @@ set -e
base_dir=$(dirname $(realpath $0))
-if [ $# -ne 5 ]; then
- echo "ERROR: Usage: $0 " >&2
+if [ $# -ne 6 ]; then
+ echo "ERROR: Usage: $0 (example: ESPREsSo)" >&2
exit 1
fi
eessi_tmpdir=$1
eessi_version=$2
cpu_arch_subdir=$3
accel_subdir=$4
-target_tgz=$5
+eessi_dev_project=$5
+target_tgz=$6
tmpdir=`mktemp -d`
echo ">> tmpdir: $tmpdir"
@@ -20,11 +21,11 @@ echo ">> tmpdir: $tmpdir"
os="linux"
source ${base_dir}/init/eessi_defaults
cvmfs_repo=${EESSI_CVMFS_REPO}
-eessi_dev_project=${EESSI_DEV_PROJECT}
# install to $eessi_version/$eessi_dev_project if defined, otherwise install
# to $eessi_version
-echo "Setting $install_prefix_dir to: ${install_prefix_dir}"
+install_prefix_dir=${eessi_version}${eessi_dev_project:+/$eessi_dev_project}/
+echo "Setting Install prefix directory to: ${install_prefix_dir}"
if [ ! -d ${install_prefix_dir} ]; then
echo "Install prefix directory ${install_prefix_dir} does not exist?!" >&2