From 8d1687e02dcc5f5da1e753900cf49b5215521856 Mon Sep 17 00:00:00 2001 From: Christoph Niethammer Date: Thu, 24 Feb 2011 13:27:24 +0000 Subject: [PATCH] Fix: Added autoreconf and fixed wrong package direcotory name. --- starss_install.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/starss_install.sh b/starss_install.sh index 4d7c886..2369242 100755 --- a/starss_install.sh +++ b/starss_install.sh @@ -26,6 +26,8 @@ VERSION="2.3-r20" SVN_BUILD="yes" # yes|no if [ "$SVN_BUILD" == "yes" ]; then + echo "Using local toolchain!" + sleep 2 module use /opt/amtopt/autotools/modulefiles module use ~/modulefiles # we should build a complete toolstack for AMT... module load local @@ -108,7 +110,7 @@ ORIGDIR="${HOME}/work" # final working directory path WORKDIR=${ORIGDIR}/${CATEGORY}/${PACKAGE}/${VERSION}-${COMPILER}-${COMPILER_VERSION}${PACKAGE_DESCRIPTOR} # path to the source code directory -SRCDIR=${WORKDIR}/SMPSS-$VERSION +SRCDIR=${WORKDIR}/$PACKAGE-$VERSION # build directory (should be different from source directory): BUILDDIR=${SRCDIR}/build @@ -145,6 +147,13 @@ esac # TODO check subdirectory build mkdir ${BUILDDIR} cd ${BUILDDIR} + +cd ${SRCDIR} +# updating build tools and environment +if [ "$SVN_BUILD" == "yes" ]; then + autoreconf -fiv +fi + echo "Running configure" ${SRCDIR}/configure --prefix=${PREFIX} ${CONFIGURE_OPTS} ${COMPILER_OPTS} 2>&1 | tee configure.log echo "Running make"