Use && for internal_copied_filegroup.

So that the rule fails if one or more files cannot be copied.
pull/899/head
Jisi Liu 9 years ago
parent 66e3a6d0b7
commit 6ddcae225c
  1. 6
      protobuf.bzl

@ -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,

Loading…
Cancel
Save