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

Side by Side Diff: build/linux/rewrite_dirs.py

Issue 521009: Clarify licenses on a bunch of files. (Closed)
Patch Set: Created 10 years, 12 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 | « base/allocator/prep_libc.sh ('k') | courgette/memory_monitor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2009 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
2 5
3 """Rewrites paths in -I, -L and other option to be relative to a sysroot.""" 6 """Rewrites paths in -I, -L and other option to be relative to a sysroot."""
4 7
5 import sys 8 import sys
6 import os 9 import os
7 10
8 REWRITE_PREFIX = ['-I', 11 REWRITE_PREFIX = ['-I',
9 '-idirafter', 12 '-idirafter',
10 '-imacros', 13 '-imacros',
11 '-imultilib', 14 '-imultilib',
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 sys.stderr.write('usage: %s /path/to/sysroot\n' % argv[0]) 55 sys.stderr.write('usage: %s /path/to/sysroot\n' % argv[0])
53 return 1 56 return 1
54 57
55 for line in sys.stdin.readlines(): 58 for line in sys.stdin.readlines():
56 line = RewriteLine(line.strip(), sysroot) 59 line = RewriteLine(line.strip(), sysroot)
57 print line 60 print line
58 return 0 61 return 0
59 62
60 if __name__ == '__main__': 63 if __name__ == '__main__':
61 sys.exit(main(sys.argv)) 64 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « base/allocator/prep_libc.sh ('k') | courgette/memory_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698