bug 434844: No Mozilla2 tinderboxes are running the codesize test - update autosummary.unix.bash the same way as basesummary*. r=bsmedberg, patch=me
authorBen Hearsum <bhearsum@mozilla.com>
Wed, 28 May 2008 14:57:58 -0400
changeset 15149 d87f575aac597d1ea52bb7b9449df26a5a3a4fee
parent 15147 35749543c3d16ebefbbfd37c666ebccfb11791cc
child 15150 c3fab88ef4f7e349b3fab748f2438834825df07e
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs434844
milestone1.9.1a1pre
bug 434844: No Mozilla2 tinderboxes are running the codesize test - update autosummary.unix.bash the same way as basesummary*. r=bsmedberg, patch=me
tools/codesighs/autosummary.unix.bash
tools/codesighs/autosummary.win.bash
--- 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"