Fix deploy_sdk.py to include README.md and stock data files

Also, remove testplan.txt, which isn't part of the framework.

TBR=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1038273002
This commit is contained in:
Adam Barth
2015-03-26 17:26:04 -07:00
parent 76a5e6184e
commit 99a5e5d356

View File

@@ -26,6 +26,7 @@ DEFAULT_REL_BUILD_DIR = os.path.join('out', 'android_Release')
def git_revision():
return subprocess.check_output(['git', 'rev-parse', 'HEAD']).strip()
def gen_filter(path):
if os.path.isdir(path):
return True
@@ -33,6 +34,7 @@ def gen_filter(path):
# Don't include all .dart, just .mojom.dart.
return path.endswith('.mojom.dart')
def dart_filter(path):
if os.path.isdir(path):
return True
@@ -41,14 +43,6 @@ def dart_filter(path):
return ext == '.dart'
def sky_or_dart_filter(path):
if os.path.isdir(path):
return True
_, ext = os.path.splitext(path)
# .dart includes '.mojom.dart'
return ext == '.sky' or ext == '.dart'
def ensure_dir_exists(path):
if not os.path.exists(path):
os.makedirs(path)
@@ -156,12 +150,10 @@ def main():
# Manually clear sdk_root above to avoid deleting dot-files.
copy(src_path('sky/sdk'), sdk_root)
copy_or_link(src_path('sky/examples'), sdk_path('examples'),
sky_or_dart_filter)
copy_or_link(src_path('sky/examples'), sdk_path('examples'))
# Sky package
copy_or_link(src_path('sky/framework'),
sdk_path('packages/sky/lib/framework'), sky_or_dart_filter)
copy_or_link(src_path('sky/framework'), sdk_path('packages/sky/lib/framework'))
copy_or_link(src_path('sky/assets'), sdk_path('packages/sky/lib/assets'))
# Copy gen files every time for now:
copy(os.path.join(build_dir, 'gen/sky'),