Chromium Code Reviews

Side by Side Diff: chrome/tools/build/make_version_cc.py

Issue 267102: Better code to determine the framework and helper app paths (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
Property Changes:
Added: svn:executable
+ *
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 #!/usr/bin/env python
2
3 # Copyright (c) 2009 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 # Creates chrome_version.cc which contains the definition of the
8 # kChromeVersion constant.
9
10 import sys
11
12 def main(me, args):
13 if len(args) != 2:
14 print >>sys.stderr, 'usage: %s version.cc version' % me
15 return 1
16
17 (cc_file, version) = args
18
19 contents = '''// automatically generated by %s
20
21 namespace chrome {
22
23 extern const char kChromeVersion[] = "%s";
TVL 2009/10/14 21:09:15 why extern?
Mark Mentovai 2009/10/14 21:26:46 TVL wrote:
24
25 } // namespace chrome
26 ''' % (me, version)
27
28 output = open(cc_file, 'w')
29 output.write(contents)
30 output.close()
31
32 return 0
33
34 if __name__ == '__main__':
35 sys.exit(main(sys.argv[0], sys.argv[1:]))
OLDNEW
« chrome/common/chrome_paths_mac.mm ('K') | « chrome/common/chrome_paths_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine