Delete whitespaces at end of lines.

This commit is contained in:
Christoph Niethammer 2016-05-03 06:52:24 +00:00
parent cf909d4c96
commit 8ca07c229e

12
sit
View file

@ -102,7 +102,7 @@ fi
if [ "$COMPILER" == "system" ] ; then if [ "$COMPILER" == "system" ] ; then
echo "Using system default compiler" echo "Using system default compiler"
COMPILER="" # prevent any compiler specs in the prefix COMPILER="" # prevent any compiler specs in the prefix
else else
case $PLATFORM in case $PLATFORM in
hazelhen) hazelhen)
module swap $(module list -l 2>&1 | awk '/^PrgEnv-/{print $1}') PrgEnv-${COMPILER} module swap $(module list -l 2>&1 | awk '/^PrgEnv-/{print $1}') PrgEnv-${COMPILER}
@ -134,7 +134,7 @@ if [ ! -z "${COMPILER}" ] ; then
COMPILER_VERSION=$(eval "$COMPILER_VERSION_CMD") COMPILER_VERSION=$(eval "$COMPILER_VERSION_CMD")
fi fi
# make the compiler variables CC, CXX, FC and F77 available # make the compiler variables CC, CXX, FC and F77 available
if [ ! -z "$COMPILER_OPTS" ] ; then if [ ! -z "$COMPILER_OPTS" ] ; then
echo "Compiler env: ${COMPILER_OPTS}" echo "Compiler env: ${COMPILER_OPTS}"
export ${COMPILER_OPTS} export ${COMPILER_OPTS}
fi fi
@ -142,7 +142,7 @@ if [ ! -z $COMPILER ] ; then
echo "Using compiler: $COMPILER version: $COMPILER_VERSION" echo "Using compiler: $COMPILER version: $COMPILER_VERSION"
fi fi
if [ ! -z "$MPI" ] ; then if [ ! -z "$MPI" ] ; then
MPI_MODULE="mpi/$MPI" MPI_MODULE="mpi/$MPI"
if [ ! -z "$MPI_VERSION" ] ; then if [ ! -z "$MPI_VERSION" ] ; then
MPI_VERSION_NUM=${MPI_VERSION%%-*} MPI_VERSION_NUM=${MPI_VERSION%%-*}
@ -154,7 +154,7 @@ if [ ! -z "$MPI" ] ; then
MPI_MODULE=${MPI_MODULE}${MPI_VERSION_NUM:+"/${MPI_VERSION_NUM}-$COMPILER-$COMPILER_VERSION"} MPI_MODULE=${MPI_MODULE}${MPI_VERSION_NUM:+"/${MPI_VERSION_NUM}-$COMPILER-$COMPILER_VERSION"}
;; ;;
esac esac
fi fi
echo "Loading MPI module ${MPI_MODULE}" echo "Loading MPI module ${MPI_MODULE}"
module load $MPI_MODULE module load $MPI_MODULE
@ -211,8 +211,8 @@ BUILDDIR=${WORKDIR}/build
LOGDIR=${WORKDIR} LOGDIR=${WORKDIR}
# source the package class file a second time, so we can modify variables # source the package class file a second time, so we can modify variables
# using their default values. (Defaults depend on other vairables in # using their default values. (Defaults depend on other vairables in
# the class file like CATEGORY or PACKAGE) # the class file like CATEGORY or PACKAGE)
source $SCLASS_DIR/$sit_classfile source $SCLASS_DIR/$sit_classfile