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.
7 # Creates chrome_version.cc which contains the definition of the
8 # kChromeVersion constant.
14 print >>sys
.stderr
, 'usage: %s version.cc version' % me
17 (cc_file
, version
) = args
19 contents
= '''// automatically generated by %s
21 #include "chrome/common/chrome_constants.h"
25 const char kChromeVersion[] = "%s";
30 output
= open(cc_file
, 'w')
31 output
.write(contents
)
36 if __name__
== '__main__':
37 sys
.exit(main(sys
.argv
[0], sys
.argv
[1:]))