gerrit/BUILD
Yuxuan 'fishy' Wang 14fdf9342e bazel: genasciidoc and genasciidoc_zip rule
Implement genasciidoc rule for bazel. It's a filegroup containing all
the html and resource files.

Also implement genasciidoc_zip rule for bazel, which is similar to
buck's genasciidoc rule to produce a zip file containing all asciidoctor
generated and resource files.

TEST PLAN:
  bazel build Documentation
  buck build Documentation:html
  diff -u bazel-bin/Documentation/install.html buck-out/gen/Documentation/html__tmp/Documentation/install.html

Change-Id: I3065355800a982c6956d3bb634204baaa60c045e
2016-10-07 15:20:35 +08:00

22 lines
558 B
Python

load('//tools/bzl:pkg_war.bzl', 'pkg_war')
genrule(
name = 'gen_version',
stamp = 1,
cmd = "grep STABLE_BUILD_GERRIT_LABEL < bazel-out/volatile-status.txt | cut -d ' ' -f 2 > $@",
outs = ['version.txt'],
visibility = ['//visibility:public'],
)
genrule(
name = "LICENSES",
srcs = ["//Documentation:licenses.txt"],
cmd = "cp $< $@",
outs = ["LICENSES.txt"],
visibility = ['//visibility:public'],
)
pkg_war(name = 'gerrit')
pkg_war(name = 'headless', ui = None)
pkg_war(name = 'release', ui = 'ui_optdbg_r', context = ['//plugins:core'])