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

Side by Side Diff: tools/create_sdk.py

Issue 11369074: Handle (missing) trailing slash in dartdoc (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments Created 8 years, 1 month 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/dartdoc/lib/src/mirrors/dart2js_mirror.dart ('k') | utils/apidoc/apidoc.dart » ('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 #!/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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 [(r'..\\..\\sdk\\lib', r'..\lib')]) 280 [(r'..\\..\\sdk\\lib', r'..\lib')])
281 else: 281 else:
282 ReplaceInFiles([join(SDK_tmp, 'bin', 'dart2js'), 282 ReplaceInFiles([join(SDK_tmp, 'bin', 'dart2js'),
283 join(SDK_tmp, 'bin', 'dartdoc'), 283 join(SDK_tmp, 'bin', 'dartdoc'),
284 join(SDK_tmp, 'bin', 'pub')], 284 join(SDK_tmp, 'bin', 'pub')],
285 [('../../sdk/lib', '../lib')]) 285 [('../../sdk/lib', '../lib')])
286 286
287 # Fix up dartdoc. 287 # Fix up dartdoc.
288 # TODO(dgrove): Remove this once sdk and dart-sdk match. 288 # TODO(dgrove): Remove this once sdk and dart-sdk match.
289 ReplaceInFiles([join(SDK_tmp, 'lib', '_internal', 'dartdoc', 289 ReplaceInFiles([join(SDK_tmp, 'lib', '_internal', 'dartdoc',
290 'lib', 'dartdoc.dart')],
291 [("_internal/dartdoc/lib/src/client/client",
292 "lib/_internal/dartdoc/lib/src/client/client")])
293 ReplaceInFiles([join(SDK_tmp, 'lib', '_internal', 'dartdoc',
294 'bin', 'dartdoc.dart')], 290 'bin', 'dartdoc.dart')],
295 [("../../../../../pkg/args/lib/args.dart", 291 [("../../../../../pkg/args/lib/args.dart",
296 "../../../../pkg/args/lib/args.dart")]) 292 "../../../../pkg/args/lib/args.dart")])
297 293
298 # Write the 'version' file 294 # Write the 'version' file
299 versionFile = open(os.path.join(SDK_tmp, 'version'), 'w') 295 versionFile = open(os.path.join(SDK_tmp, 'version'), 'w')
300 versionFile.write(version + '\n') 296 versionFile.write(version + '\n')
301 versionFile.close() 297 versionFile.close()
302 298
303 # Write the 'revision' file 299 # Write the 'revision' file
304 revision = utils.GetSVNRevision() 300 revision = utils.GetSVNRevision()
305 301
306 if revision is not None: 302 if revision is not None:
307 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 303 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
308 f.write(revision + '\n') 304 f.write(revision + '\n')
309 f.close() 305 f.close()
310 306
311 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) 307 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README'))
312 308
313 move(SDK_tmp, SDK) 309 move(SDK_tmp, SDK)
314 310
315 if __name__ == '__main__': 311 if __name__ == '__main__':
316 sys.exit(Main(sys.argv)) 312 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « sdk/lib/_internal/dartdoc/lib/src/mirrors/dart2js_mirror.dart ('k') | utils/apidoc/apidoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698