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
|
echo $SIT_DIR
|
||||||
|
|
||||||
export SRC_POOL=${HOME}/src
|
export SRC_POOL=${HOME}/src
|
||||||
export WORKDIR=${HOME}/work
|
export WORKDIR_BASE=${HOME}/work
|
||||||
|
|
||||||
PREFIX=$HOME/bin/local
|
PREFIX=$HOME/bin/local
|
||||||
MAKEOPTS="-j4"
|
MAKEOPTS="-j4"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
module load compiler/gnu/4.5
|
module load compiler/gnu/4.4.3
|
||||||
|
|
||||||
M4_VERSION=1.4.15
|
M4_VERSION=1.4.15
|
||||||
BISON_VERSION=2.4.2
|
BISON_VERSION=2.4.2
|
||||||
|
@ -67,6 +67,9 @@ function sit_install() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function sit_auto_install() {
|
function sit_auto_install() {
|
||||||
|
export WORKDIR=$WORKDIR_BASE/${P}
|
||||||
|
export SRCDIR=${WORKDIR}/${P}
|
||||||
|
export BUILDDIR=${WORKDIR}/build
|
||||||
if [ -d ${WORKDIR} ]
|
if [ -d ${WORKDIR} ]
|
||||||
then
|
then
|
||||||
rm -rf ${WORKDIR}
|
rm -rf ${WORKDIR}
|
||||||
|
@ -84,37 +87,27 @@ function sit_auto_install() {
|
||||||
# install m4
|
# install m4
|
||||||
P=m4-${M4_VERSION}
|
P=m4-${M4_VERSION}
|
||||||
A=${P}.tar.bz2
|
A=${P}.tar.bz2
|
||||||
export SRCDIR=${WORKDIR}/${P}
|
|
||||||
export BUILDDIR=${WORKDIR}/build
|
|
||||||
sit_auto_install
|
sit_auto_install
|
||||||
|
|
||||||
|
|
||||||
# install bison
|
# install bison
|
||||||
P=bison-${BISON_VERSION}
|
P=bison-${BISON_VERSION}
|
||||||
A=${P}.tar.bz2
|
A=${P}.tar.bz2
|
||||||
export SRCDIR=${WORKDIR}/${P}
|
|
||||||
export BUILDDIR=${WORKDIR}/build
|
|
||||||
sit_auto_install
|
sit_auto_install
|
||||||
|
|
||||||
# install libtool
|
# install libtool
|
||||||
P=libtool-${LIBTOOL_VERSION}
|
P=libtool-${LIBTOOL_VERSION}
|
||||||
A=${P}.tar.gz
|
A=${P}.tar.gz
|
||||||
export SRCDIR=${WORKDIR}/${P}
|
|
||||||
export BUILDDIR=${WORKDIR}/build
|
|
||||||
sit_auto_install
|
sit_auto_install
|
||||||
|
|
||||||
# install autoconf
|
# install autoconf
|
||||||
P=autoconf-${AUTOCONF_VERSION}
|
P=autoconf-${AUTOCONF_VERSION}
|
||||||
A=${P}.tar.gz
|
A=${P}.tar.gz
|
||||||
export SRCDIR=${WORKDIR}/${P}
|
|
||||||
export BUILDDIR=${WORKDIR}/build
|
|
||||||
sit_auto_install
|
sit_auto_install
|
||||||
|
|
||||||
# install automake
|
# install automake
|
||||||
P=automake-${AUTOMAKE_VERSION}
|
P=automake-${AUTOMAKE_VERSION}
|
||||||
A=${P}.tar.bz2
|
A=${P}.tar.bz2
|
||||||
export SRCDIR=${WORKDIR}/${P}
|
|
||||||
export BUILDDIR=${WORKDIR}/build
|
|
||||||
sit_auto_install
|
sit_auto_install
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue