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

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

Issue 113403002: Move iossim to DVTiPhoneSimulatorRemoteClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
« testing/iossim/iossim.mm ('K') | « testing/iossim/iossim.mm ('k') | no next file » | 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 and redirects 6 # This script executes the command given as the first argument and redirects
7 # the command's stdout to the file given as the second argument. 7 # the command's stdout to the file given as the second argument.
8 # 8 #
9 # Example: Write the text 'foo' to a file called out.txt: 9 # Example: Write the text 'foo' to a file called out.txt:
10 # RedirectStdout.sh "echo foo" out.txt 10 # RedirectStdout.sh "echo foo" out.txt
11 # 11 #
12 # This script is invoked from iossim.gyp in order to redirect the output of 12 # This script is invoked from iossim.gyp in order to redirect the output of
13 # class-dump to a file (because gyp actions don't support redirecting output). 13 # class-dump to a file (because gyp actions don't support redirecting output).
14 14
15 if [ ${#} -ne 2 ] ; then 15 if [ ${#} -ne 2 ] ; then
16 echo "usage: ${0} <command> <output file>" 16 echo "usage: ${0} <command> <output file>"
17 exit 2 17 exit 2
18 fi 18 fi
19 19
20 exec $1 > $2 20 $1 | sed /cxx_destruct/d > $2
lliabraa 2013/12/12 15:01:15 I'm fine with this but we should update the commen
justincohen 2013/12/16 18:44:37 Done.
OLDNEW
« testing/iossim/iossim.mm ('K') | « testing/iossim/iossim.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698