diff options
author | Jisi Liu <jisi.liu@gmail.com> | 2015-10-21 10:48:33 -0700 |
---|---|---|
committer | Jisi Liu <jisi.liu@gmail.com> | 2015-10-21 10:48:33 -0700 |
commit | 6ddcae225cc7e5be35756759fc5d04cabbd1cf67 (patch) | |
tree | cbfd9e28ccc9fa52721f919eddf4d3244f4a8639 | |
parent | 66e3a6d0b7b78f37be130e75bd73f6411a1f2a4f (diff) | |
download | protobuf-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.
-rw-r--r-- | protobuf.bzl | 6 |
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, |