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

Side by Side Diff: tools/create_sdk.py

Issue 107193006: Remove unused expired certificate, and database, from pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Patch create_sdk.py. Created 7 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 | « sdk/lib/_internal/pub/resource/certs/pkcs11.txt ('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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 188
189 # 189 #
190 # Create and populate lib/{core, crypto, isolate, ...}. 190 # Create and populate lib/{core, crypto, isolate, ...}.
191 # 191 #
192 192
193 os.makedirs(join(LIB, 'html')) 193 os.makedirs(join(LIB, 'html'))
194 194
195 for library in [join('_chrome', 'dart2js'), join('_chrome', 'dartium'), 195 for library in [join('_chrome', 'dart2js'), join('_chrome', 'dartium'),
196 join('_internal', 'compiler'), 196 join('_internal', 'compiler'),
197 join('_internal', 'dartdoc'), 197 join('_internal', 'dartdoc'),
198 join('_internal', 'pub', 'resource'),
199 join('_internal', 'lib'), 198 join('_internal', 'lib'),
200 'async', 'collection', '_collection_dev', 'convert', 199 'async', 'collection', '_collection_dev', 'convert',
201 'core', 'crypto', 'io', 'isolate', 200 'core', 'crypto', 'io', 'isolate',
202 join('html', 'dart2js'), join('html', 'dartium'), 201 join('html', 'dart2js'), join('html', 'dartium'),
203 join('html', 'html_common'), 202 join('html', 'html_common'),
204 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), 203 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'),
205 'js', 'math', 'mirrors', 'typed_data', 204 'js', 'math', 'mirrors', 'typed_data',
206 join('svg', 'dart2js'), join('svg', 'dartium'), 205 join('svg', 'dart2js'), join('svg', 'dartium'),
207 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), 206 join('web_audio', 'dart2js'), join('web_audio', 'dartium'),
208 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), 207 join('web_gl', 'dart2js'), join('web_gl', 'dartium'),
(...skipping 15 matching lines...) Expand all
224 DARTANALYZER_DEST = join(UTIL, 'dartanalyzer') 223 DARTANALYZER_DEST = join(UTIL, 'dartanalyzer')
225 os.makedirs(DARTANALYZER_DEST) 224 os.makedirs(DARTANALYZER_DEST)
226 225
227 jarFiles = glob.glob(join(DARTANALYZER_SRC, '*.jar')) 226 jarFiles = glob.glob(join(DARTANALYZER_SRC, '*.jar'))
228 227
229 for jarFile in jarFiles: 228 for jarFile in jarFiles:
230 copyfile(jarFile, join(DARTANALYZER_DEST, os.path.basename(jarFile))) 229 copyfile(jarFile, join(DARTANALYZER_DEST, os.path.basename(jarFile)))
231 230
232 # Copy in 7zip for Windows. 231 # Copy in 7zip for Windows.
233 if HOST_OS == 'win32': 232 if HOST_OS == 'win32':
233 RESOURCE = join(SDK_tmp, 'lib', '_internal', 'pub', 'resource')
234 os.makedirs(RESOURCE)
234 copytree(join(HOME, 'third_party', '7zip'), 235 copytree(join(HOME, 'third_party', '7zip'),
235 join(SDK_tmp, 'lib', '_internal', 'pub', 'resource', '7zip'), 236 join(RESOURCE, '7zip'),
236 ignore=ignore_patterns('.svn')) 237 ignore=ignore_patterns('.svn'))
237 238
238 # Copy dart2js/dartdoc/pub. 239 # Copy dart2js/dartdoc/pub.
239 CopyDartScripts(HOME, SDK_tmp) 240 CopyDartScripts(HOME, SDK_tmp)
240 CopySnapshots(SNAPSHOT, SDK_tmp) 241 CopySnapshots(SNAPSHOT, SDK_tmp)
241 242
242 # Write the 'version' file 243 # Write the 'version' file
243 version = utils.GetVersion() 244 version = utils.GetVersion()
244 versionFile = open(os.path.join(SDK_tmp, 'version'), 'w') 245 versionFile = open(os.path.join(SDK_tmp, 'version'), 'w')
245 versionFile.write(version + '\n') 246 versionFile.write(version + '\n')
246 versionFile.close() 247 versionFile.close()
247 248
248 # Write the 'revision' file 249 # Write the 'revision' file
249 revision = utils.GetSVNRevision() 250 revision = utils.GetSVNRevision()
250 251
251 if revision is not None: 252 if revision is not None:
252 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 253 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
253 f.write(revision + '\n') 254 f.write(revision + '\n')
254 f.close() 255 f.close()
255 256
256 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) 257 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README'))
257 258
258 move(SDK_tmp, SDK) 259 move(SDK_tmp, SDK)
259 260
260 if __name__ == '__main__': 261 if __name__ == '__main__':
261 sys.exit(Main(sys.argv)) 262 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « sdk/lib/_internal/pub/resource/certs/pkcs11.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698