summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-17 21:50:23 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-17 21:50:23 +0000
commit437bf947b1784f4d5dadaa94dc522a7a4447e11e (patch)
tree91e8656b4a6b9516d8ffeb4d130722c0f0bfafaa /build
parent18ec581d89ce702d56c31ad436ea6a353b0f9228 (diff)
downloadchromium_src-437bf947b1784f4d5dadaa94dc522a7a4447e11e.zip
chromium_src-437bf947b1784f4d5dadaa94dc522a7a4447e11e.tar.gz
chromium_src-437bf947b1784f4d5dadaa94dc522a7a4447e11e.tar.bz2
Linux: dump_app_syms would fail if the output didn't exist.
This script was trying to only rebuild the symbols when the binary file was more recent than the symbols file. However, -nt fails when the right hand side doesn't exist. Therefore it wouldn't actually dump symbols and the sed script would fail later on. This adds a test for the non-existance of the output file first. TBR=mmoss git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18659 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rwxr-xr-xbuild/linux/dump_app_syms2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/linux/dump_app_syms b/build/linux/dump_app_syms
index 1ebac58..1bbb9bc 100755
--- a/build/linux/dump_app_syms
+++ b/build/linux/dump_app_syms
@@ -31,7 +31,7 @@ if [ $? -ne 0 ]; then
fi
# Dump the symbols from the given binary.
-if [ "$INFILE" -nt "$OUTFILE" ]; then
+if [ ! -e "$OUTFILE" -o "$INFILE" -nt "$OUTFILE" ]; then
"$DUMPSYMS" "$INFILE" > "$OUTFILE"
fi