diff options
Diffstat (limited to 'tools/bazeldefs/BUILD')
-rw-r--r-- | tools/bazeldefs/BUILD | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/bazeldefs/BUILD b/tools/bazeldefs/BUILD index a4a605346..ebe90dfec 100644 --- a/tools/bazeldefs/BUILD +++ b/tools/bazeldefs/BUILD @@ -37,3 +37,11 @@ config_setting( }, visibility = ["//visibility:private"], ) + +genrule( + name = "version", + outs = ["version.txt"], + cmd = "cat bazel-out/stable-status.txt | grep STABLE_VERSION | cut -d' ' -f2- >$@", + stamp = True, + visibility = ["//:sandbox"], +) |