Steve Crosby wrote:
I've added some script-foo to my build scripts to automatically generate
SBU's, Disk Usage and Installed Files details, and am sharing below.
http://www.linuxfromscratch.org/~bdubbs/about.html
or you can just do a variation of:
TIMEFMT='%1R Elapsed Time - '
PROGRAM=sed-4.0.9
TITLE="$PROGRAM"
TIMEFORMAT="$TIMEFMT $TITLE"
before2=`df -k $LFS | grep $LFS | sed -e "s/ \{2,\}/ /g" | cut -d' ' -f3`
tar -zxf $PROGRAM.tar.gz
cd $PROGRAM
{ time \
{
echo Making $TITLE
date
./configure --prefix=/tools &&
make &&
if [ x$CHECK = "xcheck" ]; then make check; fi &&
make install
}
} 2>&1 | tee -a ../build.log
if [ $PIPESTATUS -ne 0 ]; then exit 1; fi;
echo "`du -k ../$PROGRAM.tar.gz` size" | tee -a ../build.log
after2=`df -k $LFS | grep $LFS | sed -e "s/ \{2,\}/ /g" | cut -d" " -f3`
echo "$(($after2-$before2)) kilobytes / build size - $PROGRAM" \
| tee -a ../build.log
and grep build.log for size and/or Elapsed
-- Bruce
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page