diff options
author | David Ostrovsky <david@ostrovsky.org> | 2016-11-30 08:52:06 +0100 |
---|---|---|
committer | David Pursehouse <dpursehouse@collab.net> | 2016-12-07 11:33:07 +0000 |
commit | fa18907d7ffff944b615b5108a16ba2966d720ee (patch) | |
tree | 381092c9e4455082f6655cdf7091fc682e2d3cce /BUILD | |
parent | 8836c8bbfe9fa9d23287a48ddd951153fe38e016 (diff) |
Bazel: Reformat build files
Reformat the Bazel build files with the buildifier tool [1].
The style is different for Bazel files. Most notably, indentation level
is 4 spaces instead of 2, and " is used instead of '.
[1] https://github.com/bazelbuild/buildifier
Change-Id: I95c0c6f11b6d76572797853b4ebb5cee5ebd3c98
Diffstat (limited to 'BUILD')
-rw-r--r-- | BUILD | 54 |
1 files changed, 36 insertions, 18 deletions
@@ -1,26 +1,44 @@ -package(default_visibility = ['//visibility:public']) -load('//tools/bzl:pkg_war.bzl', 'pkg_war') +package(default_visibility = ["//visibility:public"]) + +load("//tools/bzl:pkg_war.bzl", "pkg_war") genrule( - name = 'gen_version', - stamp = 1, - cmd = ("cat bazel-out/volatile-status.txt bazel-out/stable-status.txt | " + - "grep STABLE_BUILD_GERRIT_LABEL | cut -d ' ' -f 2 > $@"), - outs = ['version.txt'], - visibility = ['//visibility:public'], + name = "gen_version", + outs = ["version.txt"], + cmd = ("cat bazel-out/volatile-status.txt bazel-out/stable-status.txt | " + + "grep STABLE_BUILD_GERRIT_LABEL | cut -d ' ' -f 2 > $@"), + stamp = 1, + visibility = ["//visibility:public"], ) genrule( - name = "LICENSES", - srcs = ["//Documentation:licenses.txt"], - cmd = "cp $< $@", - outs = ["LICENSES.txt"], - visibility = ['//visibility:public'], + name = "LICENSES", + srcs = ["//Documentation:licenses.txt"], + outs = ["LICENSES.txt"], + cmd = "cp $< $@", + visibility = ["//visibility:public"], +) + +pkg_war(name = "gerrit") + +pkg_war( + name = "headless", + ui = None, ) -pkg_war(name = 'gerrit') -pkg_war(name = 'headless', ui = None) -pkg_war(name = "polygerrit", ui = "polygerrit") -pkg_war(name = 'release', ui = 'ui_optdbg_r', context = ['//plugins:core'], doc = True) -pkg_war(name = 'withdocs', doc = True) +pkg_war( + name = "polygerrit", + ui = "polygerrit", +) + +pkg_war( + name = "release", + context = ["//plugins:core"], + doc = True, + ui = "ui_optdbg_r", +) +pkg_war( + name = "withdocs", + doc = True, +) |