| OLD | NEW | 
|    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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  282  |  282  | 
|  283   # Write the 'revision' file |  283   # Write the 'revision' file | 
|  284   revision = utils.GetGitRevision() |  284   revision = utils.GetGitRevision() | 
|  285  |  285  | 
|  286   if revision is not None: |  286   if revision is not None: | 
|  287     with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: |  287     with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: | 
|  288       f.write('%s\n' % revision) |  288       f.write('%s\n' % revision) | 
|  289       f.close() |  289       f.close() | 
|  290  |  290  | 
|  291   Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) |  291   Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) | 
 |  292   Copy(join(HOME, 'LICENSE'), join(SDK_tmp, 'LICENSE')) | 
|  292   Copy(join(HOME, 'sdk', 'api_readme.md'), join(SDK_tmp, 'lib', 'api_readme.md')
     ) |  293   Copy(join(HOME, 'sdk', 'api_readme.md'), join(SDK_tmp, 'lib', 'api_readme.md')
     ) | 
|  293  |  294  | 
|  294   move(SDK_tmp, SDK) |  295   move(SDK_tmp, SDK) | 
|  295  |  296  | 
|  296 if __name__ == '__main__': |  297 if __name__ == '__main__': | 
|  297   sys.exit(Main()) |  298   sys.exit(Main()) | 
| OLD | NEW |