浏览代码

Use && for internal_copied_filegroup.

So that the rule fails if one or more files cannot be copied.
Jisi Liu 10 年之前
父节点
当前提交
6ddcae225c
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      protobuf.bzl

+ 3 - 3
protobuf.bzl

@@ -180,9 +180,9 @@ def internal_copied_filegroup(
       name=name+"_genrule",
       name=name+"_genrule",
       srcs=srcs,
       srcs=srcs,
       outs=outs,
       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(
   native.filegroup(
       name=name,
       name=name,