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

Side by Side Diff: runtime/tools/create_archive.py

Issue 2541123006: Fuchsia: Adds a script to download the prebuilt SDK (Closed)
Patch Set: Fix python script Created 4 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
« no previous file with comments | « .gitignore ('k') | tools/download_prebuilt_sdk.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/env python
1 # Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
3 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
4 # 5 #
5 # This python script creates a tar archive and a C++ source file which contains 6 # This python script creates a tar archive and a C++ source file which contains
6 # the tar archive as an array of bytes. 7 # the tar archive as an array of bytes.
7 8
8 import os 9 import os
9 import sys 10 import sys
10 from os.path import join, splitext 11 from os.path import join, splitext
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 return 0 155 return 0
155 156
156 except Exception, inst: 157 except Exception, inst:
157 sys.stderr.write('create_resources.py exception\n') 158 sys.stderr.write('create_resources.py exception\n')
158 sys.stderr.write(str(inst)) 159 sys.stderr.write(str(inst))
159 sys.stderr.write('\n') 160 sys.stderr.write('\n')
160 return -1 161 return -1
161 162
162 if __name__ == '__main__': 163 if __name__ == '__main__':
163 sys.exit(main(sys.argv)) 164 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « .gitignore ('k') | tools/download_prebuilt_sdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698