Hi, here a tiny fist patch (from myself) to fix the SBU report that wasn't running (current jhalfs svn and CLFS-1.2). I'm new to lfs/jhalfs development so I hope the format and everything is right and usable.
Schedule of changes: 1. Variables needed initailising as perl was tipping over trying to substract without that, i.e.: INSTALLMB=`perl -e 'printf "%.3f" , ('$DU1MB' - '$DU1MBPREV')';` 2. The other change affects the selection of the very first entry of the $LOGS directory. In CLFS this was a script that run in fractions of a second... SBU is supposed to be based on the compilation time of binutils though. Any feedback appreciated. Cheers, Peter ################################################# diff --git a/common/create-sbu_du-report.sh b/common/create-sbu_du-report.sh index 115d95d..24ed5a6 100755 --- a/common/create-sbu_du-report.sh +++ b/common/create-sbu_du-report.sh @@ -5,7 +5,8 @@ set -e LOGSDIR=$1 VERSION=$2 - +DU1PREV=0 +DU1MBPREV=0 LINE="================================================================================" # Make sure that we have a directory as first argument @@ -51,7 +52,7 @@ free >> "$REPORT" BUILDLOGS="`grep -l "^Totalseconds:" ${LOGSDIR}/*`" # Match the first timed log to extract the SBU unit value from it -BASELOG=`grep -l "^Totalseconds:" $LOGSDIR/* | head -n1` +BASELOG=`grep -l "^Totalseconds:" $LOGSDIR/???-binutils | head -n1` echo -e "\nUsing ${BASELOG#*[[:digit:]]-} to obtain the SBU unit value." SBU_UNIT=`sed -n 's/^Totalseconds:\s\([[:digit:]]*\)$/\1/p' $BASELOG` echo -e "\nThe SBU unit value is equal to $SBU_UNIT seconds.\n" -- http://linuxfromscratch.org/mailman/listinfo/alfs-discuss FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page