From 9dcd126468c706525ae75309a3b093d6c829e9d6 Mon Sep 17 00:00:00 2001 From: "blythe%netscape.com" Date: Tue, 3 Dec 2002 19:07:55 +0000 Subject: [PATCH] Not part of build. Remove the overall module size summary from the report, unless there is nothing else to report. As suggsted by alecf and mcafee. git-svn-id: svn://10.0.0.236/trunk@134704 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/tools/codesighs/autosummary.linux.bash | 13 ++++--------- mozilla/tools/codesighs/autosummary.win.bash | 11 +++-------- mozilla/tools/codesighs/basesummary.linux.bash | 13 ++++--------- mozilla/tools/codesighs/basesummary.win.bash | 11 +++-------- 4 files changed, 14 insertions(+), 34 deletions(-) diff --git a/mozilla/tools/codesighs/autosummary.linux.bash b/mozilla/tools/codesighs/autosummary.linux.bash index e98758a4a78..675b0210355 100755 --- a/mozilla/tools/codesighs/autosummary.linux.bash +++ b/mozilla/tools/codesighs/autosummary.linux.bash @@ -127,23 +127,18 @@ sort -r $RAWTSVFILE > $COPYSORTTSV # If a historical file was specified, diff it with our sorted tsv values. # Run it through a tool to summaries the diffs to the module # level report. +# Otherwise, generate the module level report from our new data. # rm -f $SUMMARYFILE DIFFFILE="$MYTMPDIR/diff.txt" if [ -e $OLDTSVFILE ]; then diff $OLDTSVFILE $COPYSORTTSV > $DIFFFILE ./mozilla/dist/bin/maptsvdifftool --input $DIFFFILE >> $SUMMARYFILE - echo "" >> $SUMMARYFILE - echo "" >> $SUMMARYFILE +else + ./mozilla/dist/bin/codesighs --modules --input $COPYSORTTSV >> $SUMMARYFILE fi -# -# Generate the module level report from our new data. -# -./mozilla/dist/bin/codesighs --modules --input $COPYSORTTSV >> $SUMMARYFILE - - # # Output our numbers, that will let tinderbox specify everything all # at once. @@ -167,4 +162,4 @@ fi # # Remove our temporary directory. # -\rm -rf $MYTMPDIR +rm -rf $MYTMPDIR diff --git a/mozilla/tools/codesighs/autosummary.win.bash b/mozilla/tools/codesighs/autosummary.win.bash index d9af8f664f7..1f47ecbfc12 100755 --- a/mozilla/tools/codesighs/autosummary.win.bash +++ b/mozilla/tools/codesighs/autosummary.win.bash @@ -118,23 +118,18 @@ sort -r $RAWTSVFILE > $COPYSORTTSV # If a historical file was specified, diff it with our sorted tsv values. # Run it through a tool to summaries the diffs to the module # level report. +# Otherwise, generate the module level report from our new data. # rm -f $SUMMARYFILE DIFFFILE="$MYTMPDIR/diff.txt" if [ -e $OLDTSVFILE ]; then diff $OLDTSVFILE $COPYSORTTSV > $DIFFFILE ./mozilla/dist/bin/maptsvdifftool --input $DIFFFILE >> $SUMMARYFILE - echo "" >> $SUMMARYFILE - echo "" >> $SUMMARYFILE +else + ./mozilla/dist/bin/codesighs --modules --input $COPYSORTTSV >> $SUMMARYFILE fi -# -# Generate the module level report from our new data. -# -./mozilla/dist/bin/codesighs --modules --input $COPYSORTTSV >> $SUMMARYFILE - - # # Output our numbers, that will let tinderbox specify everything all # at once. diff --git a/mozilla/tools/codesighs/basesummary.linux.bash b/mozilla/tools/codesighs/basesummary.linux.bash index eeafd3b5aec..ef2f151dc0f 100755 --- a/mozilla/tools/codesighs/basesummary.linux.bash +++ b/mozilla/tools/codesighs/basesummary.linux.bash @@ -132,23 +132,18 @@ sort -r $RAWTSVFILE > $COPYSORTTSV # If a historical file was specified, diff it with our sorted tsv values. # Run it through a tool to summaries the diffs to the module # level report. +# Otherwise, generate the module level report from our new data. # rm -f $SUMMARYFILE DIFFFILE="$MYTMPDIR/diff.txt" if [ -e $OLDTSVFILE ]; then diff $OLDTSVFILE $COPYSORTTSV > $DIFFFILE ./mozilla/dist/bin/maptsvdifftool --input $DIFFFILE >> $SUMMARYFILE - echo "" >> $SUMMARYFILE - echo "" >> $SUMMARYFILE +else + ./mozilla/dist/bin/codesighs --modules --input $COPYSORTTSV >> $SUMMARYFILE fi -# -# Generate the module level report from our new data. -# -./mozilla/dist/bin/codesighs --modules --input $COPYSORTTSV >> $SUMMARYFILE - - # # Output our numbers, that will let tinderbox specify everything all # at once. @@ -172,4 +167,4 @@ fi # # Remove our temporary directory. # -\rm -rf $MYTMPDIR +rm -rf $MYTMPDIR diff --git a/mozilla/tools/codesighs/basesummary.win.bash b/mozilla/tools/codesighs/basesummary.win.bash index a93d31364ba..375f485f512 100755 --- a/mozilla/tools/codesighs/basesummary.win.bash +++ b/mozilla/tools/codesighs/basesummary.win.bash @@ -132,23 +132,18 @@ sort -r $RAWTSVFILE > $COPYSORTTSV # If a historical file was specified, diff it with our sorted tsv values. # Run it through a tool to summaries the diffs to the module # level report. +# Otherwise, generate the module level report from our new data. # rm -f $SUMMARYFILE DIFFFILE="$MYTMPDIR/diff.txt" if [ -e $OLDTSVFILE ]; then diff $OLDTSVFILE $COPYSORTTSV > $DIFFFILE ./mozilla/dist/bin/maptsvdifftool --input $DIFFFILE >> $SUMMARYFILE - echo "" >> $SUMMARYFILE - echo "" >> $SUMMARYFILE +else + ./mozilla/dist/bin/codesighs --modules --input $COPYSORTTSV >> $SUMMARYFILE fi -# -# Generate the module level report from our new data. -# -./mozilla/dist/bin/codesighs --modules --input $COPYSORTTSV >> $SUMMARYFILE - - # # Output our numbers, that will let tinderbox specify everything all # at once.