From 9cb4d00ea9c2252a0a4345c39f4ca95cb8eeadf1 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 6 Oct 2012 18:12:57 +0100 Subject: If you pass CI_BUILD=xxx to make, it will build a CI #xxx into the version string and also mention it in the testament --- utils/git-testament.pl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'utils/git-testament.pl') diff --git a/utils/git-testament.pl b/utils/git-testament.pl index 89c41ab5e..ac4c97e89 100644 --- a/utils/git-testament.pl +++ b/utils/git-testament.pl @@ -138,6 +138,11 @@ $testament .= "#define WT_ROOT \"$qroot\"\n"; $testament .= "#define WT_HOSTNAME \"$hostname\"\n"; $testament .= "#define WT_COMPILEDATE \"$compiledate\"\n"; +my $cibuild = $ENV{CI_BUILD}; +if (defined ($cibuild) && ($cibuild ne '')) { + $testament .= "#define CI_BUILD \"$cibuild\"\n"; +} + $testament .= "#define WT_BRANCHPATH \"$gitinfo{branch}\"\n"; if ($gitinfo{branch} =~ m@^master$@) { -- cgit v1.2.3