aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/packages/BUILD
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2015-12-07 11:41:33 +0000
committerGravatar David Chen <dzc@google.com>2015-12-07 21:18:20 +0000
commited7b97e8f09722b960b45626a4b72937b9b77672 (patch)
tree5bf3385ccb25b28b4a8cb75af4b575a13f16dba8 /scripts/packages/BUILD
parentead999004c4df3f1c2c3f70f11e2d5960d489aa7 (diff)
Add a ~ between the version candidate and the release candidate qualifier for debian package
Fixes #687 -- MOS_MIGRATED_REVID=109565904
Diffstat (limited to 'scripts/packages/BUILD')
-rw-r--r--scripts/packages/BUILD9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/packages/BUILD b/scripts/packages/BUILD
index d9ac0ed675..fcc6a7dc5d 100644
--- a/scripts/packages/BUILD
+++ b/scripts/packages/BUILD
@@ -142,14 +142,19 @@ genrule(
outs = [
"version.txt",
],
- cmd = "find . -name stable-status.txt -exec cat '{}' ';' | grep EMBED_LABEL | cut -d ' ' -f 2- > $@\n",
+ cmd =
+ "find . -name stable-status.txt -exec cat '{}' ';'" +
+ " | grep EMBED_LABEL | cut -d ' ' -f 2-" +
+ # Debian package manager does not order our rcs correctly, insert a tilde
+ " | sed -E 's/^([0-9\\.]+)(.+)$$/\\1~\\2/'" +
+ " > $@\n",
stamp = 1,
)
pkg_deb(
name = "bazel-debian",
architecture = "amd64",
- built_using = "bazel (0.1.1)",
+ built_using = "bazel (HEAD)",
data = ":debian-data",
depends = [
"openjdk-8-jdk",