diff options
author | Damien Martin-Guillerez <dmarting@google.com> | 2015-03-23 11:38:48 +0000 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2015-03-23 11:58:15 +0000 |
commit | 4f08bef4cfc187392ef366d3dd2f35fcf8e5832d (patch) | |
tree | 32bbb2d938e341507095f56aaccc7db2e51698db | |
parent | 44a0f2b2f5d53d3e07512a563cd2bc16cf7180d4 (diff) |
Fixed Skylark python rule under OS X
find on OS X does not support not provided a path argument. Python
example was failing because of it.
--
MOS_MIGRATED_REVID=89287951
-rw-r--r-- | tools/build_rules/py_rules.bzl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/build_rules/py_rules.bzl b/tools/build_rules/py_rules.bzl index ddd43df75d..8573381462 100644 --- a/tools/build_rules/py_rules.bzl +++ b/tools/build_rules/py_rules.bzl @@ -62,9 +62,9 @@ def py_binary_impl(ctx): " cp %s %s/main.zip && " % (deploy_zip_nomain.path, outdir) + " (cd %s && " % outdir + " mkdir -p %s && " % " ".join(dirs) + - " find -type d -exec touch -t 198001010000 '{}'/__init__.py ';' && " + + " find . -type d -exec touch -t 198001010000 '{}'/__init__.py ';' && " + " chmod +w main.zip && " + - " %s -qR main.zip $(find -type f ) ) && " % (ZIP_PATH) + + " %s -qR main.zip $(find . -type f ) ) && " % (ZIP_PATH) + " mv %s/main.zip %s " % (outdir, deploy_zip.path)) ctx.action( |