From 6ddcae225cc7e5be35756759fc5d04cabbd1cf67 Mon Sep 17 00:00:00 2001 From: Jisi Liu Date: Wed, 21 Oct 2015 10:48:33 -0700 Subject: Use && for internal_copied_filegroup. So that the rule fails if one or more files cannot be copied. --- protobuf.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/protobuf.bzl b/protobuf.bzl index 2199caf1..0e2d44f7 100644 --- a/protobuf.bzl +++ b/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, -- cgit v1.2.3