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

Unified Diff: sky/tools/deploy_sdk.py

Issue 1038273002: Fix deploy_sdk.py to include README.md and stock data files (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 | « sky/framework/testplan.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tools/deploy_sdk.py
diff --git a/sky/tools/deploy_sdk.py b/sky/tools/deploy_sdk.py
index fd8466bc1eb14c3bc1b528f0f658f8af82cc2963..c5b481c7d9bc001423504e4bfc074465db52f826 100755
--- a/sky/tools/deploy_sdk.py
+++ b/sky/tools/deploy_sdk.py
@@ -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'),
« no previous file with comments | « sky/framework/testplan.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698