From 68b57e26c45f58bf06c7cecf4c4e0e46dd5bdd67 Mon Sep 17 00:00:00 2001 From: Christoph Niethammer Date: Thu, 28 Jun 2012 15:16:09 +0000 Subject: [PATCH] Allow general PREFIX paths by respective environment variable. --- sit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sit b/sit index 8a19b20..84ab246 100755 --- a/sit +++ b/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