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

Side by Side Diff: tools/memory/suppression_string_gen.sh

Issue 296173006: Link the contents of tools/valgrind/tsan_v2/suppressions.txt into TSan binaries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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 | Annotate | Revision Log
« base/base.gyp ('K') | « base/debug/sanitizer_options.cc ('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
(Empty)
1 #!/bin/sh
2
3 # Copyright (c) 2014 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 # This script generates a C source declaring a string with the contents of a
8 # given file.
9 # Usage:
10 # ./suppression_string_gen.sh <variable_name> <input> <output>
11
Nico 2014/05/27 15:42:30 set -eu?
Alexander Potapenko 2014/05/28 10:34:38 Done.
12 varname=$1
13 infile=$2
14 outfile=$3
15
16 echo "char ${varname}[] =" > ${outfile}
17 cat ${infile} | awk '{printf("\"%s\\n\"\n", $0)}' >> ${outfile}
18 echo ";" >> ${outfile}
OLDNEW
« base/base.gyp ('K') | « base/debug/sanitizer_options.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698