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"