| Index: tools/create_sdk.py
|
| ===================================================================
|
| --- tools/create_sdk.py (revision 21407)
|
| +++ tools/create_sdk.py (working copy)
|
| @@ -55,6 +55,7 @@
|
| # ......(more will come here)
|
|
|
|
|
| +import glob
|
| import optparse
|
| import os
|
| import re
|
| @@ -113,7 +114,7 @@
|
|
|
| def CopyDartScripts(home, sdk_root):
|
| # TODO(dgrove) - add pub once issue 6619 is fixed
|
| - for executable in ['dart2js', 'dartdoc']:
|
| + for executable in ['dart2js', 'dartanalyzer', 'dartdoc']:
|
| CopyShellScript(os.path.join(home, 'sdk', 'bin', executable),
|
| os.path.join(sdk_root, 'bin'))
|
|
|
| @@ -262,6 +263,16 @@
|
| src_file = join(ANALYZER_HOME, 'util', 'analyzer', jarToCopy)
|
| copyfile(src_file, dest_file)
|
|
|
| + # Create and copy dartanalyzer into 'util'
|
| + DARTANALYZER_SRC = join(HOME, build_dir, 'dartanalyzer')
|
| + DARTANALYZER_DEST = join(UTIL, 'dartanalyzer')
|
| + os.makedirs(DARTANALYZER_DEST)
|
| +
|
| + jarFiles = glob.glob(join(DARTANALYZER_SRC, '*.jar'))
|
| +
|
| + for jarFile in jarFiles:
|
| + copyfile(jarFile, join(DARTANALYZER_DEST, os.path.basename(jarFile)))
|
| +
|
| # Create and populate util/pub.
|
| copytree(join(HOME, 'utils', 'pub'), join(UTIL, 'pub'),
|
| ignore=ignore_patterns('.svn', 'sdk'))
|
|
|