From aa539ba4c9dc3e99a4e55f21a10fb79b9402637c Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Wed, 23 Nov 2011 22:22:20 +0000 Subject: Fix many* python scripts in src/ Make sure that: - shebang is only present for executable files - shebang is #!/usr/bin/env python - __main__ is only present for executable files - file's executable bit is coherent Also fix EOF LF to be only one. * Do not fix them all at once otherwise the CL would be too large. TBR=jamiewalch@chromium.org BUG=105108 TEST= Review URL: http://codereview.chromium.org/8665013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111427 0039d316-1c4b-4281-b951-d872f2087c98 --- gpu/command_buffer/build_gles2_cmd_buffer.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'gpu') diff --git a/gpu/command_buffer/build_gles2_cmd_buffer.py b/gpu/command_buffer/build_gles2_cmd_buffer.py index 7d00e42..9bad3ed 100755 --- a/gpu/command_buffer/build_gles2_cmd_buffer.py +++ b/gpu/command_buffer/build_gles2_cmd_buffer.py @@ -1,5 +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. @@ -5992,7 +5991,9 @@ def main(argv): if gen.errors > 0: print "%d errors" % gen.errors - sys.exit(1) + return 1 + return 0 + if __name__ == '__main__': - main(sys.argv[1:]) + sys.exit(main(sys.argv[1:])) -- cgit v1.1