From 56053f084f06e61e963b0007e7bf99e69a0f9144 Mon Sep 17 00:00:00 2001 From: Adin Scannell Date: Thu, 25 Feb 2021 10:54:14 -0800 Subject: Strip all non-numeric characters from version. This will fix debian packaging. Updates #5510 PiperOrigin-RevId: 359563378 --- tools/bazeldefs/BUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/bazeldefs/BUILD b/tools/bazeldefs/BUILD index ebe90dfec..c2c1287a1 100644 --- a/tools/bazeldefs/BUILD +++ b/tools/bazeldefs/BUILD @@ -41,7 +41,7 @@ config_setting( genrule( name = "version", outs = ["version.txt"], - cmd = "cat bazel-out/stable-status.txt | grep STABLE_VERSION | cut -d' ' -f2- >$@", + cmd = "cat bazel-out/stable-status.txt | grep STABLE_VERSION | cut -d' ' -f2- | sed 's/^[^[:digit:]]*//g' >$@", stamp = True, visibility = ["//:sandbox"], ) -- cgit v1.2.3