* added logdir

This commit is contained in:
marco 2003-10-04 13:55:59 +00:00
parent feaed02001
commit c678f31a13

View File

@ -2,11 +2,15 @@
# #
# A script to build the crossutils for a set of platforms. # A script to build the crossutils for a set of platforms.
# Note:cygwin seems to like to have all platforms qualified.
# #
# where to store the built tree of binutils? # where to store the built tree of binutils?
DESTDIR=~/cross DESTDIR=~/cross
# directory where logs go
LOGDIR=~/logs
# where can I decrunch and build? # where can I decrunch and build?
WORKDIR=~/bintst1 WORKDIR=~/bintst1
@ -49,7 +53,6 @@ export CFLAGS="${CFLAGS} -static"
export CPPFLAGS="${CPPFLAGS} -static" export CPPFLAGS="${CPPFLAGS} -static"
export CXXFLAGS="${CXXFLAGS} -static" export CXXFLAGS="${CXXFLAGS} -static"
# #
# Make a list of targets # Make a list of targets
# #
@ -83,6 +86,7 @@ done;
DESTDIR=${DESTDIR%/}/ DESTDIR=${DESTDIR%/}/
WORKDIR=${WORKDIR%/}/ WORKDIR=${WORKDIR%/}/
LOGDIR=${LOGDIR%/}/
BINUTILSPATH=${BINUTILSPATH%/}/ BINUTILSPATH=${BINUTILSPATH%/}/
BINUTILSARCHIVE=${BINUTILSPATH}${BINUTILSBASE}-${BINUTILSVERSION} BINUTILSARCHIVE=${BINUTILSPATH}${BINUTILSBASE}-${BINUTILSVERSION}
MAKE=make MAKE=make
@ -120,9 +124,9 @@ cd ${WORKDIR}
if [ ! -d ${WORKDIR}${BINUTILSBASE}-${BINUTILSVERSION} ]; then if [ ! -d ${WORKDIR}${BINUTILSBASE}-${BINUTILSVERSION} ]; then
if [ $BINUTILS_GZIP = "no" ]; then if [ $BINUTILS_GZIP = "no" ]; then
bzip2 -dc $BINUTILSARCHIVE |tar xvf - > ~/log-extract bzip2 -dc $BINUTILSARCHIVE |tar xvf - > ${LOGDIR}log-extract
else else
tar xvzf $BINUTILSARCHIVE > ~/log-extract tar xvzf $BINUTILSARCHIVE > ${LOGDIR}log-extract
fi fi
if [ ! $? = 0 ]; then if [ ! $? = 0 ]; then