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

Side by Side Diff: tools/create_sdk.py

Issue 11416255: remove htmlescape from sdk (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Add gen_snapshot to SDK. Created 8 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
« sdk/bin/gen_snapshot ('K') | « sdk/bin/gen_snapshot.bat ('k') | no next file » | 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 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 # 6 #
7 # A script which will be invoked from gyp to create an SDK. 7 # A script which will be invoked from gyp to create an SDK.
8 # 8 #
9 # Usage: create_sdk.py sdk_directory 9 # Usage: create_sdk.py sdk_directory
10 # 10 #
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 analyzer_file_extension = '.bat' # TODO(zundel): test on Windows 154 analyzer_file_extension = '.bat' # TODO(zundel): test on Windows
155 dart_import_lib_src = join(HOME, build_dir, 'dart.lib') 155 dart_import_lib_src = join(HOME, build_dir, 'dart.lib')
156 dart_import_lib_dest = join(BIN, 'dart.lib') 156 dart_import_lib_dest = join(BIN, 'dart.lib')
157 copyfile(dart_import_lib_src, dart_import_lib_dest) 157 copyfile(dart_import_lib_src, dart_import_lib_dest)
158 dart_src_binary = join(HOME, build_dir, 'dart' + dart_file_extension) 158 dart_src_binary = join(HOME, build_dir, 'dart' + dart_file_extension)
159 dart_dest_binary = join(BIN, 'dart' + dart_file_extension) 159 dart_dest_binary = join(BIN, 'dart' + dart_file_extension)
160 copyfile(dart_src_binary, dart_dest_binary) 160 copyfile(dart_src_binary, dart_dest_binary)
161 copymode(dart_src_binary, dart_dest_binary) 161 copymode(dart_src_binary, dart_dest_binary)
162 if utils.GuessOS() != 'win32': 162 if utils.GuessOS() != 'win32':
163 subprocess.call(['strip', dart_dest_binary]) 163 subprocess.call(['strip', dart_dest_binary])
164 gen_snapshot_src_binary = join(HOME, build_dir,
165 'gen_snapshot' + dart_file_extension)
166 gen_snapshot_dest_binary = join(BIN, 'gen_snapshot' + dart_file_extension)
167 copyfile(gen_snapshot_src_binary, gen_snapshot_dest_binary)
168 copymode(gen_snapshot_src_binary, gen_snapshot_dest_binary)
164 169
165 if ShouldCopyAnalyzer(): 170 if ShouldCopyAnalyzer():
166 # Copy analyzer into sdk/bin 171 # Copy analyzer into sdk/bin
167 ANALYZER_HOME = join(HOME, build_dir, 'analyzer') 172 ANALYZER_HOME = join(HOME, build_dir, 'analyzer')
168 dart_analyzer_src_binary = join(ANALYZER_HOME, 'bin', 'dart_analyzer') 173 dart_analyzer_src_binary = join(ANALYZER_HOME, 'bin', 'dart_analyzer')
169 dart_analyzer_dest_binary = join(BIN, 174 dart_analyzer_dest_binary = join(BIN,
170 'dart_analyzer' + analyzer_file_extension) 175 'dart_analyzer' + analyzer_file_extension)
171 copyfile(dart_analyzer_src_binary, dart_analyzer_dest_binary) 176 copyfile(dart_analyzer_src_binary, dart_analyzer_dest_binary)
172 copymode(dart_analyzer_src_binary, dart_analyzer_dest_binary) 177 copymode(dart_analyzer_src_binary, dart_analyzer_dest_binary)
173 178
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 307 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
303 f.write(revision + '\n') 308 f.write(revision + '\n')
304 f.close() 309 f.close()
305 310
306 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) 311 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README'))
307 312
308 move(SDK_tmp, SDK) 313 move(SDK_tmp, SDK)
309 314
310 if __name__ == '__main__': 315 if __name__ == '__main__':
311 sys.exit(Main(sys.argv)) 316 sys.exit(Main(sys.argv))
OLDNEW
« sdk/bin/gen_snapshot ('K') | « sdk/bin/gen_snapshot.bat ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698