From 437bf947b1784f4d5dadaa94dc522a7a4447e11e Mon Sep 17 00:00:00 2001 From: "agl@chromium.org" Date: Wed, 17 Jun 2009 21:50:23 +0000 Subject: 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 --- build/linux/dump_app_syms | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build/linux') 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 -- cgit v1.1