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

Unified Diff: webkit/build/webkit_version.py

Issue 8678022: Fix python scripts in src/webkit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 2012 Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/data/dom_serializer/dummy.exe » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/build/webkit_version.py
diff --git a/webkit/build/webkit_version.py b/webkit/build/webkit_version.py
index 7fdf9b32e6ee13850c57b7ea6f5a62f952333ad1..0eeeb5eaa171dee7b7e13c949258b5fbfe18ef85 100755
--- a/webkit/build/webkit_version.py
+++ b/webkit/build/webkit_version.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -49,6 +49,7 @@ def ReadVersionFile(fname):
assert(major >= 0 and minor >= 0)
return (major, minor)
+
def GetWebKitRevision(webkit_dir, version_file):
"""Get the WebKit revision, in the form 'trunk@1234'."""
@@ -95,10 +96,12 @@ def EmitVersionHeader(webkit_dir, version_file, output_dir):
""" % (version_file, major, minor, webkit_revision)
f.write(template)
f.close()
+ return 0
+
def main():
- EmitVersionHeader(*sys.argv[1:])
+ return EmitVersionHeader(*sys.argv[1:])
if __name__ == "__main__":
- main()
+ sys.exit(main())
« no previous file with comments | « no previous file | webkit/data/dom_serializer/dummy.exe » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698