Add objdir support to codesighs scripts

Bug #197656 r=alecf
This commit is contained in:
seawood%netscape.com 2003-03-25 21:39:35 +00:00
Родитель 0019d826a7
Коммит 1d0348fceb
4 изменённых файлов: 70 добавлений и 27 удалений

Просмотреть файл

@ -34,6 +34,17 @@
# file under either the MPL or the GPL.
#
#
# Check for optional objdir
#
if [ "$1" = "-o" ]; then
OBJROOT="$2"
shift
shift
else
OBJROOT="./mozilla"
fi
#
# A little help for my friends.
#
@ -80,7 +91,6 @@ if [ $SHOWHELP ]; then
exit
fi
#
# Stash our arguments away.
#
@ -118,9 +128,9 @@ fi
ALLFILES="$MYTMPDIR/allfiles.list"
if [ $OSTYPE == "Darwin" ]; then
find ./mozilla/dist/bin ! -type d > $ALLFILES
find $OBJROOT/dist/bin ! -type d > $ALLFILES
else
find ./mozilla/dist/bin -not -type d > $ALLFILES
find $OBJROOT/dist/bin -not -type d > $ALLFILES
fi
#
@ -143,7 +153,7 @@ fi
# Produce the TSV output.
#
RAWTSVFILE="$MYTMPDIR/raw.tsv"
./mozilla/dist/bin/nm2tsv --input $NMRESULTS > $RAWTSVFILE
$OBJROOT/dist/bin/nm2tsv --input $NMRESULTS > $RAWTSVFILE
#
@ -163,9 +173,9 @@ rm -f $SUMMARYFILE
DIFFFILE="$MYTMPDIR/diff.txt"
if [ -e $OLDTSVFILE ]; then
diff $OLDTSVFILE $COPYSORTTSV > $DIFFFILE
./mozilla/dist/bin/maptsvdifftool $ZERODRIFT --input $DIFFFILE >> $SUMMARYFILE
$OBJROOT/dist/bin/maptsvdifftool $ZERODRIFT --input $DIFFFILE >> $SUMMARYFILE
else
./mozilla/dist/bin/codesighs --modules --input $COPYSORTTSV >> $SUMMARYFILE
$OBJROOT/dist/bin/codesighs --modules --input $COPYSORTTSV >> $SUMMARYFILE
fi
@ -180,13 +190,13 @@ fi
if [ $TINDERBOX_OUTPUT ]; then
echo -n "__codesize:"
fi
./mozilla/dist/bin/codesighs --totalonly --input $COPYSORTTSV
$OBJROOT/dist/bin/codesighs --totalonly --input $COPYSORTTSV
if [ -e $DIFFFILE ]; then
if [ $TINDERBOX_OUTPUT ]; then
echo -n "__codesizeDiff:"
fi
./mozilla/dist/bin/maptsvdifftool $ZERODRIFT --summary --input $DIFFFILE
$OBJROOT/dist/bin/maptsvdifftool $ZERODRIFT --summary --input $DIFFFILE
fi
#

Просмотреть файл

@ -33,6 +33,17 @@
# file under either the MPL or the GPL.
#
#
# Check for optional objdir
#
if [ "$1" = "-o" ]; then
OBJROOT="$2"
shift
shift
else
OBJROOT="./mozilla"
fi
#
# A little help for my friends.
#
@ -98,7 +109,7 @@ MYTMPDIR=`mktemp -d ./codesighs.tmp.XXXXXXXX`
# Find the types of files we are interested in.
#
ONEFINDPASS="$MYTMPDIR/onefind.list"
find ./mozilla -type f -name "*.obj" -or -name "*.map" > $ONEFINDPASS
find $OBJROOT -type f -name "*.obj" -or -name "*.map" > $ONEFINDPASS
#
@ -119,7 +130,7 @@ xargs -n 1 dumpbin.exe /symbols < $ALLOBJSFILE > $ALLOBJSYMSFILE 2> /dev/null
# Produce the symdb for the symbols in all object files.
#
SYMDBFILE="$MYTMPDIR/symdb.tsv"
./mozilla/dist/bin/msdump2symdb --input $ALLOBJSYMSFILE | sort > $SYMDBFILE 2> /dev/null
$OBJROOT/dist/bin/msdump2symdb --input $ALLOBJSYMSFILE | sort > $SYMDBFILE 2> /dev/null
#
@ -133,7 +144,7 @@ grep -i "\.map$" < $ONEFINDPASS > $ALLMAPSFILE
# Produce the TSV output.
#
RAWTSVFILE="$MYTMPDIR/raw.tsv"
./mozilla/dist/bin/msmap2tsv --symdb $SYMDBFILE --batch < $ALLMAPSFILE > $RAWTSVFILE 2> /dev/null
$OBJROOT/dist/bin/msmap2tsv --symdb $SYMDBFILE --batch < $ALLMAPSFILE > $RAWTSVFILE 2> /dev/null
#
@ -152,9 +163,9 @@ rm -f $SUMMARYFILE
DIFFFILE="$MYTMPDIR/diff.txt"
if [ -e $OLDTSVFILE ]; then
diff $OLDTSVFILE $COPYSORTTSV > $DIFFFILE
./mozilla/dist/bin/maptsvdifftool --negation --input $DIFFFILE | dos2unix >> $SUMMARYFILE
$OBJROOT/dist/bin/maptsvdifftool --negation --input $DIFFFILE | dos2unix >> $SUMMARYFILE
else
./mozilla/dist/bin/codesighs --modules --input $COPYSORTTSV | dos2unix >> $SUMMARYFILE
$OBJROOT/dist/bin/codesighs --modules --input $COPYSORTTSV | dos2unix >> $SUMMARYFILE
fi
@ -169,14 +180,14 @@ fi
if [ $TINDERBOX_OUTPUT ]; then
echo -n "__codesize:"
fi
./mozilla/dist/bin/codesighs --totalonly --input $COPYSORTTSV | dos2unix
$OBJROOT/dist/bin/codesighs --totalonly --input $COPYSORTTSV | dos2unix
if [ -e $DIFFFILE ]; then
if [ $TINDERBOX_OUTPUT ]; then
echo -n "__codesizeDiff:"
fi
./mozilla/dist/bin/maptsvdifftool --negation --summary --input $DIFFFILE | dos2unix
$OBJROOT/dist/bin/maptsvdifftool --negation --summary --input $DIFFFILE | dos2unix
fi
#

Просмотреть файл

@ -34,6 +34,17 @@
# file under either the MPL or the GPL.
#
#
# Check for optional objdir
#
if [ "$1" = "-o" ]; then
OBJROOT="$2"
shift
shift
else
OBJROOT="./mozilla"
fi
OSTYPE=`uname -s`
if [ $OSTYPE == "Darwin" ]; then
@ -147,7 +158,7 @@ fi
# Produce the TSV output.
#
RAWTSVFILE="$MYTMPDIR/raw.tsv"
./mozilla/dist/bin/nm2tsv --input $NMRESULTS > $RAWTSVFILE
$OBJROOT/dist/bin/nm2tsv --input $NMRESULTS > $RAWTSVFILE
#
@ -166,9 +177,9 @@ rm -f $SUMMARYFILE
DIFFFILE="$MYTMPDIR/diff.txt"
if [ -e $OLDTSVFILE ]; then
diff $OLDTSVFILE $COPYSORTTSV > $DIFFFILE
./mozilla/dist/bin/maptsvdifftool $ZERODRIFT --input $DIFFFILE >> $SUMMARYFILE
$OBJROOT/dist/bin/maptsvdifftool $ZERODRIFT --input $DIFFFILE >> $SUMMARYFILE
else
./mozilla/dist/bin/codesighs --modules --input $COPYSORTTSV >> $SUMMARYFILE
$OBJROOT/dist/bin/codesighs --modules --input $COPYSORTTSV >> $SUMMARYFILE
fi
@ -183,13 +194,13 @@ fi
if [ $TINDERBOX_OUTPUT ]; then
echo -n "__codesize:"
fi
./mozilla/dist/bin/codesighs --totalonly --input $COPYSORTTSV
$OBJROOT/dist/bin/codesighs --totalonly --input $COPYSORTTSV
if [ -e $DIFFFILE ]; then
if [ $TINDERBOX_OUTPUT ]; then
echo -n "__codesizeDiff:"
fi
./mozilla/dist/bin/maptsvdifftool $ZERODRIFT --summary --input $DIFFFILE
$OBJROOT/dist/bin/maptsvdifftool $ZERODRIFT --summary --input $DIFFFILE
fi
#

Просмотреть файл

@ -37,6 +37,17 @@
MANIFEST="./mozilla/embedding/config/basebrowser-win"
#
# Check for optional objdir
#
if [ "$1" = "-o" ]; then
OBJROOT="$2"
shift
shift
else
OBJROOT="./mozilla"
fi
#
# A little help for my friends.
#
@ -103,7 +114,7 @@ MYTMPDIR=`mktemp -d ./codesighs.tmp.XXXXXXXX`
# Find the types of files we are interested in.
#
ONEFINDPASS="$MYTMPDIR/onefind.list"
find ./mozilla -type f -name "*.obj" -or -name "*.map" > $ONEFINDPASS
find $OBJROOT -type f -name "*.obj" -or -name "*.map" > $ONEFINDPASS
#
@ -124,7 +135,7 @@ xargs -n 1 dumpbin.exe /symbols < $ALLOBJSFILE > $ALLOBJSYMSFILE 2> /dev/null
# Produce the symdb for the symbols in all object files.
#
SYMDBFILE="$MYTMPDIR/symdb.tsv"
./mozilla/dist/bin/msdump2symdb --input $ALLOBJSYMSFILE | sort > $SYMDBFILE 2> /dev/null
$OBJROOT/dist/bin/msdump2symdb --input $ALLOBJSYMSFILE | sort > $SYMDBFILE 2> /dev/null
#
@ -148,7 +159,7 @@ RELEVANTARG=`xargs -n 1 echo --match-module < $RELEVANTSETFILE`
# Produce the TSV output.
#
RAWTSVFILE="$MYTMPDIR/raw.tsv"
./mozilla/dist/bin/msmap2tsv --symdb $SYMDBFILE --batch $RELEVANTARG < $ALLMAPSFILE > $RAWTSVFILE 2> /dev/null
$OBJROOT/dist/bin/msmap2tsv --symdb $SYMDBFILE --batch $RELEVANTARG < $ALLMAPSFILE > $RAWTSVFILE 2> /dev/null
#
@ -167,9 +178,9 @@ rm -f $SUMMARYFILE
DIFFFILE="$MYTMPDIR/diff.txt"
if [ -e $OLDTSVFILE ]; then
diff $OLDTSVFILE $COPYSORTTSV > $DIFFFILE
./mozilla/dist/bin/maptsvdifftool --negation --input $DIFFFILE | dos2unix >> $SUMMARYFILE
$OBJROOT/dist/bin/maptsvdifftool --negation --input $DIFFFILE | dos2unix >> $SUMMARYFILE
else
./mozilla/dist/bin/codesighs --modules --input $COPYSORTTSV | dos2unix >> $SUMMARYFILE
$OBJROOT/dist/bin/codesighs --modules --input $COPYSORTTSV | dos2unix >> $SUMMARYFILE
fi
@ -184,13 +195,13 @@ fi
if [ $TINDERBOX_OUTPUT ]; then
echo -n "__codesize:"
fi
./mozilla/dist/bin/codesighs --totalonly --input $COPYSORTTSV | dos2unix
$OBJROOT/dist/bin/codesighs --totalonly --input $COPYSORTTSV | dos2unix
if [ -e $DIFFFILE ]; then
if [ $TINDERBOX_OUTPUT ]; then
echo -n "__codesizeDiff:"
fi
./mozilla/dist/bin/maptsvdifftool --negation --summary --input $DIFFFILE | dos2unix
$OBJROOT/dist/bin/maptsvdifftool --negation --summary --input $DIFFFILE | dos2unix
fi
#