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

Side by Side Diff: tools/create_sdk.py

Issue 12088120: Remove cURL from the SDK. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 months 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 | « no previous file | 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 join(join(UTIL, 'pub'), '7zip'), 261 join(join(UTIL, 'pub'), '7zip'),
262 ignore=ignore_patterns('.svn')) 262 ignore=ignore_patterns('.svn'))
263 263
264 ReplaceInFiles([ 264 ReplaceInFiles([
265 join(UTIL, 'pub', 'io.dart'), 265 join(UTIL, 'pub', 'io.dart'),
266 ], [ 266 ], [
267 ("../../third_party/7zip/7za.exe", 267 ("../../third_party/7zip/7za.exe",
268 "7zip/7za.exe"), 268 "7zip/7za.exe"),
269 ]) 269 ])
270 270
271 # Copy in cURL on all operating systems, since we need the certificates file
272 # even outside Windows. Leave out the EXE on non-Windows systems, though.
273 curl_ignore_patterns = ignore_patterns('.svn') if HOST_OS == 'win32' \
274 else ignore_patterns('.svn', '*.exe')
275 copytree(join(HOME, 'third_party', 'curl'),
276 join(join(UTIL, 'pub'), 'curl'),
277 ignore=curl_ignore_patterns)
278
279 ReplaceInFiles([
280 join(UTIL, 'pub', 'curl_client.dart'),
281 ], [
282 ("../../third_party/curl/curl.exe",
283 "curl/curl.exe"),
284 ("../../third_party/curl/ca-certificates.crt",
285 "curl/ca-certificates.crt"),
286 ])
287
288 version = utils.GetVersion() 271 version = utils.GetVersion()
289 272
290 # Copy dart2js/dartdoc/pub. 273 # Copy dart2js/dartdoc/pub.
291 CopyDartScripts(HOME, build_dir, SDK_tmp, version) 274 CopyDartScripts(HOME, build_dir, SDK_tmp, version)
292 275
293 # Fix up dartdoc. 276 # Fix up dartdoc.
294 # TODO(dgrove): Remove this once issue 6619 is fixed. 277 # TODO(dgrove): Remove this once issue 6619 is fixed.
295 ReplaceInFiles([join(SDK_tmp, 'lib', '_internal', 'dartdoc', 278 ReplaceInFiles([join(SDK_tmp, 'lib', '_internal', 'dartdoc',
296 'bin', 'dartdoc.dart')], 279 'bin', 'dartdoc.dart')],
297 [("../../../../../pkg/args/lib/args.dart", 280 [("../../../../../pkg/args/lib/args.dart",
(...skipping 11 matching lines...) Expand all
309 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 292 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
310 f.write(revision + '\n') 293 f.write(revision + '\n')
311 f.close() 294 f.close()
312 295
313 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) 296 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README'))
314 297
315 move(SDK_tmp, SDK) 298 move(SDK_tmp, SDK)
316 299
317 if __name__ == '__main__': 300 if __name__ == '__main__':
318 sys.exit(Main(sys.argv)) 301 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698