Commit 6ddcae22 authored by Jisi Liu's avatar Jisi Liu

Use && for internal_copied_filegroup.

So that the rule fails if one or more files cannot be copied.
parent 66e3a6d0
......@@ -180,9 +180,9 @@ def internal_copied_filegroup(
name=name+"_genrule",
srcs=srcs,
outs=outs,
cmd=";".join(["cp $(location %s) $(location %s)" % \
(s, _RelativeOutputPath(s, include)) \
for s in srcs]))
cmd=" && ".join(["cp $(location %s) $(location %s)" %
(s, _RelativeOutputPath(s, include))
for s in srcs]))
native.filegroup(
name=name,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment