summaryrefslogtreecommitdiffstats
path: root/native_client_sdk/src/project_templates
diff options
context:
space:
mode:
authormaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-27 21:00:58 +0000
committermaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-27 21:00:58 +0000
commit6c8fdd74f22305ed5847d150fc8e6a2110a096b8 (patch)
tree41cb68138941c072bf2bd3ec2b4729f99d905b16 /native_client_sdk/src/project_templates
parent2fac37585d3dfa0d7cf7a976698aae7627186573 (diff)
downloadchromium_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-xnative_client_sdk/src/project_templates/init_project.py3
-rwxr-xr-xnative_client_sdk/src/project_templates/init_project_test.py4
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())