bug 434844: No Mozilla2 tinderboxes are running the codesize test - update autosummary.unix.bash the same way as basesummary*. r=bsmedberg, patch=me
--- a/tools/codesighs/autosummary.unix.bash
+++ b/tools/codesighs/autosummary.unix.bash
@@ -45,16 +45,24 @@
if [ "$1" = "-o" ]; then
OBJROOT="$2"
shift
shift
else
OBJROOT="./mozilla"
fi
+if [ "$1" = "-s" ]; then
+SRCROOT="$2"
+shift
+shift
+else
+SRCROOT="./mozilla"
+fi
+
#
# A little help for my friends.
#
if [ "-h" == "$1" ];then
SHOWHELP="1"
fi
if [ "--help" == "$1" ];then
SHOWHELP="1"
@@ -161,30 +169,30 @@ else
USE_READELF=
fi
fi
fi
RAWTSVFILE="$MYTMPDIR/raw.tsv"
if test "$USE_READELF"; then
export READELF_PROG
-xargs -n 1 ./mozilla/tools/codesighs/readelf_wrap.pl < $ALLFILES > $RAWTSVFILE 2> /dev/null
+xargs -n 1 $SRCROOT/tools/codesighs/readelf_wrap.pl < $ALLFILES > $RAWTSVFILE 2> /dev/null
else
#
# Produce the cumulative nm output.
# We are very particular on what switches to use.
# nm --format=bsd --size-sort --print-file-name --demangle
#
# Darwin (Mac OS X) has a lame nm that we have to wrap in a perl
# script to get decent output.
#
NMRESULTS="$MYTMPDIR/nm.txt"
if [ $OSTYPE == "Darwin" ]; then
-xargs -n 1 ./mozilla/tools/codesighs/nm_wrap_osx.pl < $ALLFILES > $NMRESULTS 2> /dev/null
+xargs -n 1 $SRCROOT/tools/codesighs/nm_wrap_osx.pl < $ALLFILES > $NMRESULTS 2> /dev/null
else
xargs -n 1 nm --format=bsd --size-sort --print-file-name --demangle < $ALLFILES > $NMRESULTS 2> /dev/null
fi
#
# Produce the TSV output.
#
--- a/tools/codesighs/autosummary.win.bash
+++ b/tools/codesighs/autosummary.win.bash
@@ -44,16 +44,24 @@
if [ "$1" = "-o" ]; then
OBJROOT="$2"
shift
shift
else
OBJROOT="./mozilla"
fi
+if [ "$1" = "-s" ]; then
+SRCROOT="$2"
+shift
+shift
+else
+SRCROOT="./mozilla"
+fi
+
#
# A little help for my friends.
#
if [ "-h" == "$1" ];then
SHOWHELP="1"
fi
if [ "--help" == "$1" ];then
SHOWHELP="1"