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

Side by Side Diff: remoting/webapp/build-webapp.py

Issue 8665013: Fix many* python scripts in src/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed chrome_frame/tools/test/page_cycler/cf_cycler.py Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/tools/runclient.py ('k') | remoting/webapp/verify-translations.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/env python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Creates a directory with with the unpacked contents of the remoting webapp. 6 """Creates a directory with with the unpacked contents of the remoting webapp.
7 7
8 The directory will contain a copy-of or a link-to to all remoting webapp 8 The directory will contain a copy-of or a link-to to all remoting webapp
9 resources. This includes HTML/JS and any plugin binaries. The script also 9 resources. This includes HTML/JS and any plugin binaries. The script also
10 massages resulting files appropriately with host plugin data. Finally, 10 massages resulting files appropriately with host plugin data. Finally,
11 a zip archive for all of the above is produced. 11 a zip archive for all of the above is produced.
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 176
177 # Make the zipfile. 177 # Make the zipfile.
178 createZip(zip_path, destination) 178 createZip(zip_path, destination)
179 179
180 180
181 def main(): 181 def main():
182 if len(sys.argv) < 6: 182 if len(sys.argv) < 6:
183 print ('Usage: build-webapp.py ' 183 print ('Usage: build-webapp.py '
184 '<build-type> <mime-type> <dst> <zip-path> <plugin> ' 184 '<build-type> <mime-type> <dst> <zip-path> <plugin> '
185 '<other files...> --locales <locales...>') 185 '<other files...> --locales <locales...>')
186 sys.exit(1) 186 return 1
187 187
188 reading_locales = False 188 reading_locales = False
189 files = [] 189 files = []
190 locales = [] 190 locales = []
191 for arg in sys.argv[6:]: 191 for arg in sys.argv[6:]:
192 if arg == "--locales": 192 if arg == "--locales":
193 reading_locales = True; 193 reading_locales = True;
194 elif reading_locales: 194 elif reading_locales:
195 locales.append(arg) 195 locales.append(arg)
196 else: 196 else:
197 files.append(arg) 197 files.append(arg)
198 198
199 buildWebApp(sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4], sys.argv[5], 199 buildWebApp(sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4], sys.argv[5],
200 files, locales) 200 files, locales)
201 return 0
201 202
202 203
203 if __name__ == '__main__': 204 if __name__ == '__main__':
204 main() 205 sys.exit(main())
OLDNEW
« no previous file with comments | « remoting/tools/runclient.py ('k') | remoting/webapp/verify-translations.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698