Use subdirectories under work for each package.
This commit is contained in:
parent
6db1142c57
commit
fb0f8f3d43
1 changed files with 5 additions and 12 deletions
|
@ -11,14 +11,14 @@ export SIT_DIR=$(dirname "$ORIGDIR/$0")
|
|||
echo $SIT_DIR
|
||||
|
||||
export SRC_POOL=${HOME}/src
|
||||
export WORKDIR=${HOME}/work
|
||||
export WORKDIR_BASE=${HOME}/work
|
||||
|
||||
PREFIX=$HOME/bin/local
|
||||
MAKEOPTS="-j4"
|
||||
|
||||
|
||||
|
||||
module load compiler/gnu/4.5
|
||||
module load compiler/gnu/4.4.3
|
||||
|
||||
M4_VERSION=1.4.15
|
||||
BISON_VERSION=2.4.2
|
||||
|
@ -67,6 +67,9 @@ function sit_install() {
|
|||
}
|
||||
|
||||
function sit_auto_install() {
|
||||
export WORKDIR=$WORKDIR_BASE/${P}
|
||||
export SRCDIR=${WORKDIR}/${P}
|
||||
export BUILDDIR=${WORKDIR}/build
|
||||
if [ -d ${WORKDIR} ]
|
||||
then
|
||||
rm -rf ${WORKDIR}
|
||||
|
@ -84,37 +87,27 @@ function sit_auto_install() {
|
|||
# install m4
|
||||
P=m4-${M4_VERSION}
|
||||
A=${P}.tar.bz2
|
||||
export SRCDIR=${WORKDIR}/${P}
|
||||
export BUILDDIR=${WORKDIR}/build
|
||||
sit_auto_install
|
||||
|
||||
|
||||
# install bison
|
||||
P=bison-${BISON_VERSION}
|
||||
A=${P}.tar.bz2
|
||||
export SRCDIR=${WORKDIR}/${P}
|
||||
export BUILDDIR=${WORKDIR}/build
|
||||
sit_auto_install
|
||||
|
||||
# install libtool
|
||||
P=libtool-${LIBTOOL_VERSION}
|
||||
A=${P}.tar.gz
|
||||
export SRCDIR=${WORKDIR}/${P}
|
||||
export BUILDDIR=${WORKDIR}/build
|
||||
sit_auto_install
|
||||
|
||||
# install autoconf
|
||||
P=autoconf-${AUTOCONF_VERSION}
|
||||
A=${P}.tar.gz
|
||||
export SRCDIR=${WORKDIR}/${P}
|
||||
export BUILDDIR=${WORKDIR}/build
|
||||
sit_auto_install
|
||||
|
||||
# install automake
|
||||
P=automake-${AUTOMAKE_VERSION}
|
||||
A=${P}.tar.bz2
|
||||
export SRCDIR=${WORKDIR}/${P}
|
||||
export BUILDDIR=${WORKDIR}/build
|
||||
sit_auto_install
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Reference in a new issue