Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(723)

Side by Side Diff: testing/iossim/redirect-stdout.sh

Issue 1161813003: Reland "Roll DEPS to class-dump 3.5" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add second OWNER Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « testing/iossim/iossim.mm ('k') | third_party/class-dump/LICENSE » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 # 5 #
6 # This script executes the command given as the first argument, strips 6 # This script executes the command given as the first argument, strips
7 # cxx_destruct from stdout, and redirects the remaining stdout to the file given 7 # cxx_destruct from stdout, and redirects the remaining stdout to the file given
8 # as the second argument. 8 # as the second argument.
9 # 9 #
10 # Example: Write the text 'foo' to a file called out.txt: 10 # Example: Write the text 'foo' to a file called out.txt:
11 # RedirectStdout.sh "echo foo" out.txt 11 # RedirectStdout.sh "echo foo" out.txt
12 # 12 #
13 # This script is invoked from iossim.gyp in order to redirect the output of 13 # This script is invoked from iossim.gyp in order to redirect the output of
14 # class-dump to a file (because gyp actions don't support redirecting output). 14 # class-dump to a file (because gyp actions don't support redirecting output).
15 # This script also removes all lines with cxx_destruct. Perhaps newer versions 15 # This script also removes all lines with cxx_destruct. Perhaps newer versions
16 # of class-dump will fix this issue. As of 3.5, 'cxx_destruct' still exists. 16 # of class-dump will fix this issue. As of 3.5, 'cxx_destruct' still exists.
17 17
18 if [ ${#} -ne 2 ] ; then 18 if [ ${#} -ne 2 ] ; then
19 echo "usage: ${0} <command> <output file>" 19 echo "usage: ${0} <command> <output file>"
20 exit 2 20 exit 2
21 fi 21 fi
22 22
23 $1 | sed /cxx_destruct/d > $2 23 echo "// Treat class-dump output as a system header." > $2
24 echo "#pragma clang system_header" >> $2
25 $1 | sed /cxx_destruct/d >> $2
OLDNEW
« no previous file with comments | « testing/iossim/iossim.mm ('k') | third_party/class-dump/LICENSE » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698