From 9ed009c7502c22ce001d617e65a64c02d96a3ea4 Mon Sep 17 00:00:00 2001 From: "mcafee%netscape.com" Date: Fri, 13 Dec 2002 02:11:27 +0000 Subject: [PATCH] Adding changes we made to autosummary.win.bash here, quote change for find/shells, dos2unix cleanup for tbox. --- tools/codesighs/basesummary.win.bash | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/tools/codesighs/basesummary.win.bash b/tools/codesighs/basesummary.win.bash index 375f485f512c..a06c9e9eb135 100755 --- a/tools/codesighs/basesummary.win.bash +++ b/tools/codesighs/basesummary.win.bash @@ -103,7 +103,7 @@ MYTMPDIR=`mktemp -d ./codesighs.tmp.XXXXXXXX` # Find all map files. # ALLMAPSFILE="$MYTMPDIR/allmaps.list" -find ./mozilla -type f -name *.map > $ALLMAPSFILE +find ./mozilla -type f -name "*.map" > $ALLMAPSFILE # @@ -138,9 +138,9 @@ rm -f $SUMMARYFILE DIFFFILE="$MYTMPDIR/diff.txt" if [ -e $OLDTSVFILE ]; then diff $OLDTSVFILE $COPYSORTTSV > $DIFFFILE - ./mozilla/dist/bin/maptsvdifftool --input $DIFFFILE >> $SUMMARYFILE + ./mozilla/dist/bin/maptsvdifftool --input $DIFFFILE | dos2unix >> $SUMMARYFILE else - ./mozilla/dist/bin/codesighs --modules --input $COPYSORTTSV >> $SUMMARYFILE + ./mozilla/dist/bin/codesighs --modules --input $COPYSORTTSV | dos2unix >> $SUMMARYFILE fi @@ -151,9 +151,17 @@ fi # files parsed. # Second number, if present, is growth/shrinkage. # -./mozilla/dist/bin/codesighs --totalonly --input $COPYSORTTSV + +if [ $TINDERBOX_OUTPUT ]; then + echo -n "__codesize:" +fi +./mozilla/dist/bin/codesighs --totalonly --input $COPYSORTTSV | dos2unix + if [ -e $DIFFFILE ]; then - ./mozilla/dist/bin/maptsvdifftool --summary --input $DIFFFILE +if [ $TINDERBOX_OUTPUT ]; then + echo -n "__codesizeDiff:" +fi + ./mozilla/dist/bin/maptsvdifftool --summary --input $DIFFFILE | dos2unix fi #