remove source & build directories when not needed to conserve space

This commit is contained in:
Dave Murphy 2005-03-03 09:27:47 +00:00
parent 46ffcc57a4
commit 8992bda8dd
2 changed files with 47 additions and 0 deletions

View File

@ -23,6 +23,11 @@ $MAKE install | tee binutils_install.log 2>&1
cd $BUILDSCRIPTDIR
#---------------------------------------------------------------------------------
# remove temp stuff to conserve disc space
#---------------------------------------------------------------------------------
rm -fr $target/binutils
rm -fr $BINUTILS_SRCDIR
#---------------------------------------------------------------------------------
# build and install just the c compiler
@ -57,6 +62,12 @@ cd $target/newlib
$MAKE all | tee newlib_make.log 2>&1
$MAKE install | tee newlib_install.log 2>&1
#---------------------------------------------------------------------------------
# remove temp stuff to conserve disc space
#---------------------------------------------------------------------------------
rm -fr $target/newlib
rm -fr $NEWLIB_SRCDIR
#---------------------------------------------------------------------------------
# build and install the final compiler
#---------------------------------------------------------------------------------
@ -66,3 +77,9 @@ cd $target/gcc
$MAKE | tee gcc_final_make.log 2>&1
$MAKE install | tee gcc_final_install.log 2>&1
#---------------------------------------------------------------------------------
# remove temp stuff to conserve disc space
#---------------------------------------------------------------------------------
rm -fr $target/gcc
rm -fr $GCC_SRCDIR

View File

@ -1,7 +1,11 @@
#!/bin/sh
#---------------------------------------------------------------------------------
prefix=$INSTALLDIR
#---------------------------------------------------------------------------------
# build and install binutils
#---------------------------------------------------------------------------------
mkdir -p $target/binutils
cd $target/binutils
@ -14,6 +18,15 @@ cd $target/binutils
$MAKE | tee binutils_make.log 2>&1
$MAKE install | tee binutils_install.log 2>&1
#---------------------------------------------------------------------------------
# remove temp stuff to conserve disc space
#---------------------------------------------------------------------------------
rm -fr $target/binutils
rm -fr $BINUTILS_SRCDIR
#---------------------------------------------------------------------------------
# build and install just the c compiler
#---------------------------------------------------------------------------------
cd $BUILDSCRIPTDIR
mkdir -p $target/gcc
cd $target/gcc
@ -32,6 +45,9 @@ cd $target/gcc
$MAKE all-gcc | tee gcc_make.log 2>&1
$MAKE install-gcc | tee gcc_install.log 2>&1
#---------------------------------------------------------------------------------
# build and install newlib
#---------------------------------------------------------------------------------
cd $BUILDSCRIPTDIR
mkdir -p $target/newlib
cd $target/newlib
@ -41,9 +57,23 @@ cd $target/newlib
$MAKE all | tee newlib_make.log 2>&1
$MAKE install | tee newlib_install.log 2>&1
#---------------------------------------------------------------------------------
# remove temp stuff to conserve disc space
#---------------------------------------------------------------------------------
rm -fr $target/newlib
rm -fr $NEWLIB_SRCDIR
#---------------------------------------------------------------------------------
# build and install the final compiler
#---------------------------------------------------------------------------------
cd $BUILDSCRIPTDIR
cd $target/gcc
$MAKE | tee gcc_final_make.log 2>&1
$MAKE install | tee gcc_final_install.log 2>&1
#---------------------------------------------------------------------------------
# remove temp stuff to conserve disc space
#---------------------------------------------------------------------------------
rm -fr $target/gcc
rm -fr $GCC_SRCDIR