Index: build/android/gyp/copy_ex.py |
diff --git a/build/android/gyp/copy_ex.py b/build/android/gyp/copy_ex.py |
index eee3d191747c074545ebc24f5a37cfc0ac01e6ec..76d4fe0c48b6a5cfe34bef3db450f0ac1e2f5739 100755 |
--- a/build/android/gyp/copy_ex.py |
+++ b/build/android/gyp/copy_ex.py |
@@ -7,6 +7,7 @@ |
"""Copies files to a directory.""" |
import optparse |
+import os |
import shutil |
import sys |
@@ -39,7 +40,10 @@ def main(args): |
files += build_utils.ParseGypList(file_arg) |
for f in files: |
- shutil.copy(f, options.dest) |
+ if os.path.isdir(f): |
+ shutil.copytree(f, os.path.join(options.dest, os.path.basename(f))) |
cjhopman
2015/05/08 22:58:55
I would require that options.clear be set if any d
sky
2015/05/08 23:38:31
Why is it different than with files? The same prob
cjhopman
2015/05/08 23:57:05
Yeah, exactly, I don't trust people (including mys
|
+ else: |
+ shutil.copy(f, options.dest) |
if options.depfile: |
build_utils.WriteDepfile( |