diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-27 21:00:58 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-27 21:00:58 +0000 |
commit | 6c8fdd74f22305ed5847d150fc8e6a2110a096b8 (patch) | |
tree | 41cb68138941c072bf2bd3ec2b4729f99d905b16 /native_client_sdk/src/project_templates | |
parent | 2fac37585d3dfa0d7cf7a976698aae7627186573 (diff) | |
download | chromium_src-6c8fdd74f22305ed5847d150fc8e6a2110a096b8.zip chromium_src-6c8fdd74f22305ed5847d150fc8e6a2110a096b8.tar.gz chromium_src-6c8fdd74f22305ed5847d150fc8e6a2110a096b8.tar.bz2 |
Fix python scripts in src/native_client_sdk/
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.
TBR=bradnelson@chromium.org
BUG=105108
TEST=
Review URL: http://codereview.chromium.org/8669017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111659 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'native_client_sdk/src/project_templates')
-rwxr-xr-x | native_client_sdk/src/project_templates/init_project.py | 3 | ||||
-rwxr-xr-x | native_client_sdk/src/project_templates/init_project_test.py | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/native_client_sdk/src/project_templates/init_project.py b/native_client_sdk/src/project_templates/init_project.py index 4b5bad2..52aa1b8b 100755 --- a/native_client_sdk/src/project_templates/init_project.py +++ b/native_client_sdk/src/project_templates/init_project.py @@ -1,5 +1,4 @@ -#!/usr/bin/python2.6 -# +#!/usr/bin/env python # Copyright (c) 2011 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. diff --git a/native_client_sdk/src/project_templates/init_project_test.py b/native_client_sdk/src/project_templates/init_project_test.py index 681916f..931aec3 100755 --- a/native_client_sdk/src/project_templates/init_project_test.py +++ b/native_client_sdk/src/project_templates/init_project_test.py @@ -1,5 +1,4 @@ -#!/usr/bin/python2.6 -# +#!/usr/bin/env python # Copyright (c) 2011 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. @@ -252,5 +251,6 @@ def RunTests(): return_value = 0 return return_value + if __name__ == '__main__': sys.exit(RunTests()) |