diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-10-06 18:12:57 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-10-06 18:12:57 +0100 |
commit | 9cb4d00ea9c2252a0a4345c39f4ca95cb8eeadf1 (patch) | |
tree | 11b0d6f2733cfa9abed83b7dcfb29cdf0e32276b /utils/git-testament.pl | |
parent | 9c1a04e279f691a9db4b338fc0f52030cc439a13 (diff) | |
download | netsurf-9cb4d00ea9c2252a0a4345c39f4ca95cb8eeadf1.tar.gz netsurf-9cb4d00ea9c2252a0a4345c39f4ca95cb8eeadf1.tar.bz2 |
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
Diffstat (limited to 'utils/git-testament.pl')
-rw-r--r-- | utils/git-testament.pl | 5 |
1 files changed, 5 insertions, 0 deletions
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$@) { |