Allow general PREFIX paths by respective environment variable.
This commit is contained in:
parent
ebb1c7c78b
commit
68b57e26c4
1 changed files with 2 additions and 1 deletions
3
sit
3
sit
|
@ -125,13 +125,14 @@ fi
|
|||
PACKAGENAME=${PACKAGENAME:=$PACKAGE}
|
||||
|
||||
# construct the final installation directory path
|
||||
if [ -z $PREFIX ] ; then
|
||||
PREFIX="${PREFIX_BASE}/${CATEGORY}/${PACKAGE}/${VERSION}"
|
||||
PREFIX_SUFFIX=${MPI:+"-$MPI"}${MPI_VERSION_NUM:+"-$MPI_VERSION_NUM"}
|
||||
PREFIX_SUFFIX=$PREFIX_SUFFIX${COMPILER:+"-$COMPILER"}${COMPILER_VERSION:+"-$COMPILER_VERSION"}
|
||||
PREFIX_SUFFIX=$PREFIX_SUFFIX${PACKAGE_DESCRIPTOR}
|
||||
|
||||
|
||||
PREFIX=$PREFIX${PREFIX_SUFFIX:+"$PREFIX_SUFFIX"}
|
||||
fi
|
||||
|
||||
# final working directory path
|
||||
WORKDIR=${WORKDIR_BASE}/${CATEGORY}/${PACKAGE}/${VERSION}$PREFIX_SUFFIX
|
||||
|
|
Loading…
Reference in a new issue