bug 434844: fix basesummary.*.bash to work with differently named srcdirs. r=bsmedberg, patch=me
This commit is contained in:
Родитель
7cccb177a2
Коммит
79b055a141
|
@ -50,12 +50,20 @@ else
|
|||
OBJROOT="./mozilla"
|
||||
fi
|
||||
|
||||
if [ "$1" = "-s" ]; then
|
||||
SRCROOT="$2"
|
||||
shift
|
||||
shift
|
||||
else
|
||||
SRCROOT="./mozilla"
|
||||
fi
|
||||
|
||||
OSTYPE=`uname -s`
|
||||
|
||||
if [ $OSTYPE == "Darwin" ]; then
|
||||
MANIFEST="./mozilla/embedding/config/basebrowser-mac-macho"
|
||||
MANIFEST="$SRCROOT/embedding/config/basebrowser-mac-macho"
|
||||
else
|
||||
MANIFEST="./mozilla/embedding/config/basebrowser-unix"
|
||||
MANIFEST="$SRCROOT/embedding/config/basebrowser-unix"
|
||||
fi
|
||||
|
||||
#
|
||||
|
@ -173,7 +181,7 @@ RAWTSVFILE="$MYTMPDIR/raw.tsv"
|
|||
|
||||
if test "$USE_READELF"; then
|
||||
export READELF_PROG
|
||||
xargs -n 1 ./mozilla/tools/codesighs/readelf_wrap.pl < $ALLFILES > $RAWTSVFILE
|
||||
xargs -n 1 $SRCROOT/tools/codesighs/readelf_wrap.pl < $ALLFILES > $RAWTSVFILE
|
||||
else
|
||||
|
||||
#
|
||||
|
@ -186,7 +194,7 @@ else
|
|||
#
|
||||
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
|
||||
|
|
|
@ -39,9 +39,6 @@
|
|||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
|
||||
MANIFEST="./mozilla/embedding/config/basebrowser-win"
|
||||
|
||||
|
||||
#
|
||||
# Check for optional objdir
|
||||
#
|
||||
|
@ -53,6 +50,16 @@ else
|
|||
OBJROOT="./mozilla"
|
||||
fi
|
||||
|
||||
if [ "$1" = "-s" ]; then
|
||||
SRCROOT="$2"
|
||||
shift
|
||||
shift
|
||||
else
|
||||
SRCROOT="./mozilla"
|
||||
fi
|
||||
|
||||
MANIFEST="$SRCROOT/embedding/config/basebrowser-win"
|
||||
|
||||
#
|
||||
# A little help for my friends.
|
||||
#
|
||||
|
|
Загрузка…
Ссылка в новой задаче