aboutsummaryrefslogtreecommitdiff
path: root/protobuf.bzl
diff options
context:
space:
mode:
authorJisi Liu <jisi.liu@gmail.com>2015-10-21 10:48:33 -0700
committerJisi Liu <jisi.liu@gmail.com>2015-10-21 10:48:33 -0700
commit6ddcae225cc7e5be35756759fc5d04cabbd1cf67 (patch)
treecbfd9e28ccc9fa52721f919eddf4d3244f4a8639 /protobuf.bzl
parent66e3a6d0b7b78f37be130e75bd73f6411a1f2a4f (diff)
downloadprotobuf-6ddcae225cc7e5be35756759fc5d04cabbd1cf67.tar.gz
protobuf-6ddcae225cc7e5be35756759fc5d04cabbd1cf67.tar.bz2
protobuf-6ddcae225cc7e5be35756759fc5d04cabbd1cf67.zip
Use && for internal_copied_filegroup.
So that the rule fails if one or more files cannot be copied.
Diffstat (limited to 'protobuf.bzl')
-rw-r--r--protobuf.bzl6
1 files 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,