Changeset 125e05e


Ignore:
Timestamp:
02/28/2012 01:20:40 PM (12 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
2.4, ablfs-more, legacy, new_features, trunk
Children:
9af9dfa
Parents:
8ea21f8
Message:

Update create-sbu-report so that it works with CLFS
and that it prints the last "Installed file size"

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • common/create-sbu_du-report.sh

    r8ea21f8 r125e05e  
    5252
    5353# Match the first timed log to extract the SBU unit value from it
    54 BASELOG=`grep -l "^Totalseconds:" $LOGSDIR/* | head -n1`
     54FIRSTLOG=`grep -l "^Totalseconds:" $LOGSDIR/* | head -n1`
     55BASELOG=`grep -l "^Totalseconds:" $LOGSDIR/???-binutils* | head -n1`
    5556echo -e "\nUsing ${BASELOG#*[[:digit:]]-} to obtain the SBU unit value."
    5657SBU_UNIT=`sed -n 's/^Totalseconds:\s\([[:digit:]]*\)$/\1/p' $BASELOG`
     
    9293# Append installed files disk usage to the previous entry,
    9394# except for the first parsed log
    94   if [ "$log" != "$BASELOG" ] ; then
     95  if [ "$log" != "$FIRSTLOG" ] ; then
    9596    INSTALL=`perl -e 'print ('$DU1' - '$DU1PREV')';`
    9697    INSTALLMB=`perl -e 'printf "%.3f" , ('$DU1MB' - '$DU1MBPREV')';`
     
    116117done
    117118
     119# For printing the last 'Installed files disk usage', we need to 'du' the
     120# root dir, excluding the jhalfs directory (and lost+found). We assume
     121# that the rootdir is $LOGSDIR/../..
     122DU1=`du -skx --exclude=jhalfs --exclude=lost+found $LOGSDIR/../.. | cut -f1`
     123DU1MB=`perl -e 'printf "%.3f" , ('$DU1' / '1024')';`
     124INSTALL=`perl -e 'print ('$DU1' - '$DU1PREV')';`
     125INSTALLMB=`perl -e 'printf "%.3f" , ('$DU1MB' - '$DU1MBPREV')';`
     126echo -e "Installed files disk usage:\t\t\t\t$INSTALL KB or $INSTALLMB MB\n" >> $REPORT
     127# Append install values for grand total
     128INSTALL2=`perl -e 'printf "%.3f" , ('$INSTALL2' + '$INSTALL')';`
     129INSTALLMB2=`perl -e 'printf "%.3f" , ('$INSTALLMB2' + '$INSTALLMB')';`
     130
    118131# Dump grand totals
    119132echo -e "\n$LINE\n\nTotal time required to build the systen:\t\t$SBU2  SBU" >> $REPORT
  • custom/examples/997-nasm

    r8ea21f8 r125e05e  
    11#
    2 # $Id:$
     2# $Id$
    33# NASM (Netwide Assembler) is an 80x86 assembler designed
    44# for portability and modularity. It includes a
Note: See TracChangeset for help on using the changeset viewer.