OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2010 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 # | 6 # |
7 # Helper script to run dump_syms on Chrome Linux executables and strip | 7 # Helper script to run dump_syms on Chrome Linux executables and strip |
8 # them if needed. | 8 # them if needed. |
9 | 9 |
10 set -e | 10 set -e |
(...skipping 10 matching lines...) Expand all Loading... |
21 fi | 21 fi |
22 | 22 |
23 SCRIPTDIR="$(readlink -f "$(dirname "$0")")" | 23 SCRIPTDIR="$(readlink -f "$(dirname "$0")")" |
24 DUMPSYMS="$1" | 24 DUMPSYMS="$1" |
25 STRIP_BINARY="$2" | 25 STRIP_BINARY="$2" |
26 INFILE="$3" | 26 INFILE="$3" |
27 OUTFILE="$4" | 27 OUTFILE="$4" |
28 | 28 |
29 # Dump the symbols from the given binary. | 29 # Dump the symbols from the given binary. |
30 if [ ! -e "$OUTFILE" -o "$INFILE" -nt "$OUTFILE" ]; then | 30 if [ ! -e "$OUTFILE" -o "$INFILE" -nt "$OUTFILE" ]; then |
31 "$DUMPSYMS" "$INFILE" > "$OUTFILE" | 31 "$DUMPSYMS" -r "$INFILE" > "$OUTFILE" |
32 fi | 32 fi |
33 | 33 |
34 if [ "$STRIP_BINARY" != "0" ]; then | 34 if [ "$STRIP_BINARY" != "0" ]; then |
35 strip "$INFILE" | 35 strip "$INFILE" |
36 fi | 36 fi |
OLD | NEW |