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

Side by Side Diff: tools/create_sdk.py

Issue 10538087: Revert "Experiment: Enable building dart_analyzer on linux builders and adding to SDK" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « dart.gyp ('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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 dest.close() 89 dest.close()
90 90
91 91
92 def Copy(src, dest): 92 def Copy(src, dest):
93 copyfile(src, dest) 93 copyfile(src, dest)
94 copymode(src, dest) 94 copymode(src, dest)
95 95
96 # TODO(zundel): this excludes the analyzer from the sdk build until builders 96 # TODO(zundel): this excludes the analyzer from the sdk build until builders
97 # have all prerequisite software installed. Also update dart.gyp. 97 # have all prerequisite software installed. Also update dart.gyp.
98 def ShouldCopyAnalyzer(): 98 def ShouldCopyAnalyzer():
99 return utils.GuessOS() == 'linux' 99 # return utils.GuessOS() == 'linux'
100 return False
100 101
101 102
102 def CopyShellScript(src_file, dest_dir): 103 def CopyShellScript(src_file, dest_dir):
103 '''Copies a shell/batch script to the given destination directory. Handles 104 '''Copies a shell/batch script to the given destination directory. Handles
104 using the appropriate platform-specific file extension.''' 105 using the appropriate platform-specific file extension.'''
105 file_extension = '' 106 file_extension = ''
106 if utils.GuessOS() == 'win32': 107 if utils.GuessOS() == 'win32':
107 file_extension = '.bat' 108 file_extension = '.bat'
108 109
109 src = src_file + file_extension 110 src = src_file + file_extension
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 if revision is not None: 529 if revision is not None:
529 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 530 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
530 f.write(revision + '\n') 531 f.write(revision + '\n')
531 f.close() 532 f.close()
532 533
533 move(SDK_tmp, SDK) 534 move(SDK_tmp, SDK)
534 utils.Touch(os.path.join(SDK, 'create.stamp')) 535 utils.Touch(os.path.join(SDK, 'create.stamp'))
535 536
536 if __name__ == '__main__': 537 if __name__ == '__main__':
537 sys.exit(Main(sys.argv)) 538 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « dart.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698