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

Unified Diff: tools/create_sdk.py

Issue 472173004: Skeleton code for running the forthcoming async/await compiler on pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/create_pub_snapshot.py ('k') | utils/pub/pub.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/create_sdk.py
diff --git a/tools/create_sdk.py b/tools/create_sdk.py
index 6a43e75f75f1d75a1ab0b0ced56a9d2889a5a386..90d86871ca34fc579b3e040fb45a9fde02d8a5fb 100755
--- a/tools/create_sdk.py
+++ b/tools/create_sdk.py
@@ -101,19 +101,24 @@ def CopyShellScript(src_file, dest_dir):
if HOST_OS == 'win32':
file_extension = '.bat'
+ # If we're copying an SDK-specific shell script, strip off the suffix.
+ dest_file = basename(src_file)
+ if dest_file.endswith('_sdk'):
+ dest_file = dest_file.replace('_sdk', '')
+
src = src_file + file_extension
- dest = join(dest_dir, basename(src_file) + file_extension)
+ dest = join(dest_dir, dest_file + file_extension)
Copy(src, dest)
def CopyDartScripts(home, sdk_root):
- for executable in ['dart2js', 'dartanalyzer', 'dartfmt', 'docgen', 'pub']:
+ for executable in ['dart2js', 'dartanalyzer', 'dartfmt', 'docgen', 'pub_sdk']:
CopyShellScript(os.path.join(home, 'sdk', 'bin', executable),
os.path.join(sdk_root, 'bin'))
def CopySnapshots(snapshots, sdk_root):
- for snapshot in ['analysis_server', 'dart2js', 'dartanalyzer', 'dartfmt',
+ for snapshot in ['analysis_server', 'dart2js', 'dartanalyzer', 'dartfmt',
'utils_wrapper', 'pub']:
snapshot += '.dart.snapshot'
copyfile(join(snapshots, snapshot),
« no previous file with comments | « tools/create_pub_snapshot.py ('k') | utils/pub/pub.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698