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

Side by Side Diff: tools/create_sdk.py

Issue 1166743005: Remove GetSVNRevision from tools/utils.py (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: address comments Created 5 years, 6 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
« no previous file with comments | « tools/bots/linux_distribution_support.py ('k') | tools/create_tarball.py » ('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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 CopyDartScripts(HOME, SDK_tmp) 244 CopyDartScripts(HOME, SDK_tmp)
245 CopySnapshots(SNAPSHOT, SDK_tmp) 245 CopySnapshots(SNAPSHOT, SDK_tmp)
246 246
247 # Write the 'version' file 247 # Write the 'version' file
248 version = utils.GetVersion() 248 version = utils.GetVersion()
249 versionFile = open(os.path.join(SDK_tmp, 'version'), 'w') 249 versionFile = open(os.path.join(SDK_tmp, 'version'), 'w')
250 versionFile.write(version + '\n') 250 versionFile.write(version + '\n')
251 versionFile.close() 251 versionFile.close()
252 252
253 # Write the 'revision' file 253 # Write the 'revision' file
254 revision = utils.GetSVNRevision() 254 revision = utils.GetGitRevision()
255 255
256 if revision is not None: 256 if revision is not None:
257 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 257 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
258 f.write('%s\n' % revision) 258 f.write('%s\n' % revision)
259 f.close() 259 f.close()
260 260
261 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) 261 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README'))
262 Copy(join(HOME, 'sdk', 'api_readme.md'), join(SDK_tmp, 'lib', 'api_readme.md') ) 262 Copy(join(HOME, 'sdk', 'api_readme.md'), join(SDK_tmp, 'lib', 'api_readme.md') )
263 263
264 move(SDK_tmp, SDK) 264 move(SDK_tmp, SDK)
265 265
266 if __name__ == '__main__': 266 if __name__ == '__main__':
267 sys.exit(Main()) 267 sys.exit(Main())
OLDNEW
« no previous file with comments | « tools/bots/linux_distribution_support.py ('k') | tools/create_tarball.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698