Fix python scripts in src/tools/
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.
[email protected]
BUG=105108
TEST=
Review URL: http://codereview.chromium.org/8678023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111960 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/tools/unused-symbols-report.py b/tools/unused-symbols-report.py
index 12eb0537..900bf16e 100755
--- a/tools/unused-symbols-report.py
+++ b/tools/unused-symbols-report.py
@@ -1,9 +1,9 @@
-#!/usr/bin/python
-# Copyright (c) 2010 The Chromium Authors. All rights reserved.
+#!/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.
-"""Print a report of symbols stripped by the linker due to being unused.
+"""Prints a report of symbols stripped by the linker due to being unused.
To use, build with these linker flags:
-Wl,--gc-sections
@@ -166,5 +166,6 @@
only_paths=opts.only_paths)
Output(iter)
+
if __name__ == '__main__':
main()