| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2011, 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 frog_options_dest.write(re.sub("final config = \'dev\';", | 174 frog_options_dest.write(re.sub("final config = \'dev\';", |
| 175 "final config = \'sdk\';", | 175 "final config = \'sdk\';", |
| 176 frog_options_contents)) | 176 frog_options_contents)) |
| 177 frog_options_dest.close() | 177 frog_options_dest.close() |
| 178 elif filename.endswith('.dart'): | 178 elif filename.endswith('.dart'): |
| 179 copyfile(join(frog_src_dir, filename), join(frog_dest_dir, filename)) | 179 copyfile(join(frog_src_dir, filename), join(frog_dest_dir, filename)) |
| 180 | 180 |
| 181 copytree(join(frog_src_dir, 'leg'), join(frog_dest_dir, 'leg'), | 181 copytree(join(frog_src_dir, 'leg'), join(frog_dest_dir, 'leg'), |
| 182 ignore=ignore_patterns('.svn')) | 182 ignore=ignore_patterns('.svn')) |
| 183 | 183 |
| 184 copytree(join(frog_src_dir, 'server'), join(frog_dest_dir, 'server'), |
| 185 ignore=ignore_patterns('.svn')) |
| 186 |
| 184 # | 187 # |
| 185 # Create and populate lib/html and lib/htmlimpl. | 188 # Create and populate lib/html and lib/htmlimpl. |
| 186 # | 189 # |
| 187 html_src_dir = join(HOME, 'client', 'html') | 190 html_src_dir = join(HOME, 'client', 'html') |
| 188 html_dest_dir = join(LIB, 'html') | 191 html_dest_dir = join(LIB, 'html') |
| 189 os.makedirs(html_dest_dir) | 192 os.makedirs(html_dest_dir) |
| 190 htmlimpl_dest_dir = join(LIB, 'htmlimpl') | 193 htmlimpl_dest_dir = join(LIB, 'htmlimpl') |
| 191 os.makedirs(htmlimpl_dest_dir) | 194 os.makedirs(htmlimpl_dest_dir) |
| 192 | 195 |
| 193 copyfile(join(html_src_dir, 'release', 'html.dart'), | 196 copyfile(join(html_src_dir, 'release', 'html.dart'), |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 UTIL = join(SDK_tmp, 'util') | 373 UTIL = join(SDK_tmp, 'util') |
| 371 os.makedirs(UTIL) | 374 os.makedirs(UTIL) |
| 372 | 375 |
| 373 copytree(join(HOME, 'utils', 'dartdoc'), join(UTIL, 'dartdoc'), | 376 copytree(join(HOME, 'utils', 'dartdoc'), join(UTIL, 'dartdoc'), |
| 374 ignore=ignore_patterns('.svn')) | 377 ignore=ignore_patterns('.svn')) |
| 375 | 378 |
| 376 move(SDK_tmp, SDK) | 379 move(SDK_tmp, SDK) |
| 377 | 380 |
| 378 if __name__ == '__main__': | 381 if __name__ == '__main__': |
| 379 sys.exit(Main(sys.argv)) | 382 sys.exit(Main(sys.argv)) |
| OLD | NEW |