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

Unified Diff: chrome/tools/build/win/make_policy_zip.py

Issue 8680018: Fix python scripts in src/chrome/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright Created 9 years, 1 month 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 | « chrome/tools/build/win/dependencies.py ('k') | chrome/tools/build/win/scan_server_dlls.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/tools/build/win/make_policy_zip.py
diff --git a/chrome/tools/build/win/make_policy_zip.py b/chrome/tools/build/win/make_policy_zip.py
old mode 100644
new mode 100755
index 60037c37cb5e8092f6644b590fe0ba1d86e467cf..08224836ea941410ed57d09a707f53e1f65bf8a2
--- a/chrome/tools/build/win/make_policy_zip.py
+++ b/chrome/tools/build/win/make_policy_zip.py
@@ -1,3 +1,4 @@
+#!/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.
@@ -12,6 +13,7 @@ import os
import sys
import zipfile
+
def add_files_to_zip(zip_file, base_dir, file_list):
"""Pack a list of files into a zip archive, that is already
opened for writing.
@@ -26,6 +28,7 @@ def add_files_to_zip(zip_file, base_dir, file_list):
zip_file.write(base_dir + file_path, file_path)
return 0
+
def get_grd_outputs(grit_cmd, grit_defines, grd_file, grd_strip_path_prefix):
grit_path = os.path.join(os.getcwd(), os.path.dirname(grit_cmd))
sys.path.append(grit_path)
@@ -37,6 +40,7 @@ def get_grd_outputs(grit_cmd, grit_defines, grd_file, grd_strip_path_prefix):
result.append(item[len(grd_strip_path_prefix):])
return result
+
def main(argv):
"""Pack a list of files into a zip archive.
@@ -73,6 +77,6 @@ def main(argv):
finally:
zip_file.close()
+
if '__main__' == __name__:
sys.exit(main(sys.argv))
-
« no previous file with comments | « chrome/tools/build/win/dependencies.py ('k') | chrome/tools/build/win/scan_server_dlls.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698