aboutsummaryrefslogtreecommitdiffhomepage
path: root/BUILD
diff options
context:
space:
mode:
authorGravatar Klaus Aehlig <aehlig@google.com>2016-10-22 07:59:41 +0000
committerGravatar John Cater <jcater@google.com>2016-10-24 19:28:00 +0000
commit4ca79d48cc8d514708dda7286fc83171bc81d4fc (patch)
tree2b49a79e6af01f1811eae10439751f348c244fd0 /BUILD
parentb8fbde3d8291c0bb2a60a714890d680e34754260 (diff)
Create a distribution artifact
...containing, besides the original sources, all generated machine-independent files needed for creating a bootstrap bazel without the need of having a protoc installed. -- Change-Id: Ib90e7896615b4067175a23fe2c942dbac4b71e4a Reviewed-on: https://bazel-review.googlesource.com/#/c/6730 MOS_MIGRATED_REVID=136910561
Diffstat (limited to 'BUILD')
-rw-r--r--BUILD11
1 files changed, 11 insertions, 0 deletions
diff --git a/BUILD b/BUILD
index 3401a32a90..e6e2a2a000 100644
--- a/BUILD
+++ b/BUILD
@@ -58,3 +58,14 @@ pkg_tar(
# Public but bazel-only visibility.
visibility = ["//:__subpackages__"],
)
+
+genrule(
+ name = "bazel-distfile",
+ srcs = [
+ ":bazel-srcs",
+ "//src:derived_java_srcs",
+ ],
+ outs = ["bazel-distfile.zip"],
+ cmd = "$(location :combine_distfiles.sh) $@ $(SRCS)",
+ tools = ["combine_distfiles.sh"],
+)