From 51e3d236601db528e467eaa73e5120c359f0441c Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Sun, 23 Sep 2007 13:23:16 +0000 Subject: [PATCH] Do disk usage meassurament from inside build scripts plus other fixes to can keep accurate disk usage and SBU reports. Chroot scripts clean-up. --- LFS/lfs.xsl | 96 ++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 66 insertions(+), 30 deletions(-) diff --git a/LFS/lfs.xsl b/LFS/lfs.xsl index 41d80fb..c393410 100644 --- a/LFS/lfs.xsl +++ b/LFS/lfs.xsl @@ -87,15 +87,17 @@ PKG_PHASE=dummy PACKAGE=dummy VERSION=0.0.0 TARBALL=dummy-0.0.0.tar.bz2 - - - + + + + cd $PKGDIR ./configure --prefix=/usr make make check make install + @@ -123,15 +125,17 @@ PKG_PHASE=dummy PACKAGE=dummy VERSION=0.0.0 TARBALL=dummy-0.0.0.tar.bz2 - - - + + + + cd $PKGDIR ./configure --prefix=/usr make make check make install + @@ -155,6 +159,7 @@ PACKAGE=dummy VERSION=0.0.0 TARBALL=dummy-0.0.0.tar.bz2 + cd $PKGDIR @@ -163,6 +168,7 @@ make make check make install + @@ -194,29 +200,50 @@ make install - - - - #!/tools/bin/bash - - - #!/bin/bash - - - - set +h - - - set -e + + + + + #!/tools/bin/bash + + + #!/bin/bash + + + + set +h + + + set -e + + + echo -e "\n`date`\n" - - + + + + + + echo -e "\nKB: `du -skx --exclude=jhalfs --exclude=lost+found $LFS`\n" + + + echo -e "\nKB: `du -skx --exclude=jhalfs --exclude=lost+found /`\n" + + + + + + + @@ -235,6 +262,7 @@ if [ -d ${PKGDIR%-*}-build ]; then rm -rf ${PKGDIR%-*}-build fi tar -xf $TARBALL +SECONDS=0 @@ -261,7 +289,7 @@ tar -xf $TARBALL - + @@ -272,21 +300,25 @@ tar -xf $TARBALL +SECS=$SECONDS rm -rf $PKGDIR rm -rf ${PKGDIR%-*}-build +SECONDS=$SECS - + - echo -e "\n\nTotalseconds: $SECONDS\n" + +echo -e "\n\nTotalseconds: $SECONDS\n" + +exit + - - exit @@ -349,6 +381,7 @@ PACKAGE=dummy VERSION=0.0.0 TARBALL=dummy-0.0.0.tar.bz2 + cd $PKGDIR @@ -357,6 +390,7 @@ make make check make install + @@ -453,6 +487,7 @@ make install + @@ -461,6 +496,7 @@ make install +