[exim-cvs] New variable $exim_version. Bug 306

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Exim Git Commits Mailing List
Date:  
À: exim-cvs
Sujet: [exim-cvs] New variable $exim_version. Bug 306
Gitweb: http://git.exim.org/exim.git/commitdiff/712240406dff5ac02645003ce1ea40b70a3080ac
Commit:     712240406dff5ac02645003ce1ea40b70a3080ac
Parent:     98b8312fe7bf50e38c4a6dbc9f7592d2db134f36
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Sat Nov 29 19:52:09 2014 +0000
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Mon Jan 12 18:58:35 2015 +0000


    New variable $exim_version.  Bug 306
---
 doc/doc-docbook/spec.xfpt    |    7 +++++++
 doc/doc-txt/NewStuff         |   11 ++++++++---
 src/src/expand.c             |    1 +
 test/scripts/0000-Basic/0002 |    1 +
 test/stdout/0002             |    1 +
 5 files changed, 18 insertions(+), 3 deletions(-)


diff --git a/doc/doc-docbook/spec.xfpt b/doc/doc-docbook/spec.xfpt
index 8ef56d1..1486b00 100644
--- a/doc/doc-docbook/spec.xfpt
+++ b/doc/doc-docbook/spec.xfpt
@@ -11372,6 +11372,13 @@ This variable contains the path to the Exim binary.
.vindex "&$exim_uid$&"
This variable contains the numerical value of the Exim user id.

+.vitem &$exim_version$&
+.vindex "&$exim_uid$&"
+This variable contains the version string of the Exim build.
+The first character is a major version number, currently 4.
+Then after a dot, the next group of digits is a minor version number.
+There may be other characters following the minor version.
+
.vitem &$found_extension$&
.vindex "&$found_extension$&"
This variable is available when Exim is compiled with the
diff --git a/doc/doc-txt/NewStuff b/doc/doc-txt/NewStuff
index f40fbed..8cb2d0d 100644
--- a/doc/doc-txt/NewStuff
+++ b/doc/doc-txt/NewStuff
@@ -6,6 +6,14 @@ Before a formal release, there may be quite a lot of detail so that people can
test from the snapshots or the CVS before the documentation is updated. Once
the documentation is updated, this file is reduced to a short list.

+Version 4.86
+------------
+
+ 1. Support for using the system standard CA bundle.
+
+ 2. New expansion items $config_file, $config_dir, containing the file
+    and directory name of the main configuration file. Also $exim_version.
+
 Version 4.85
 ------------


@@ -25,9 +33,6 @@ Version 4.85
     server certs used for TLS match the result of the MX lookup. It does
     not use the same mechanism as DANE.


- 4. New expansion items $config_file, $config_dir, containing the file
-    and directory name of the main configuration file. 
-


 Version 4.84
 ------------
diff --git a/src/src/expand.c b/src/src/expand.c
index 0e9dff2..8504390 100644
--- a/src/src/expand.c
+++ b/src/src/expand.c
@@ -503,6 +503,7 @@ static var_entry var_table[] = {
   { "exim_gid",            vtype_gid,         &exim_gid },
   { "exim_path",           vtype_stringptr,   &exim_path },
   { "exim_uid",            vtype_uid,         &exim_uid },
+  { "exim_version",        vtype_stringptr,   &version_string },
 #ifdef WITH_OLD_DEMIME
   { "found_extension",     vtype_stringptr,   &found_extension },
 #endif
diff --git a/test/scripts/0000-Basic/0002 b/test/scripts/0000-Basic/0002
index 11fa1cd..328f5a3 100644
--- a/test/scripts/0000-Basic/0002
+++ b/test/scripts/0000-Basic/0002
@@ -15,6 +15,7 @@ exim -be
 # Some fixed variables


exim_path: $exim_path
+exim_version: $exim_version
config_dir: $config_dir
config_file: $config_file
primary_hostname: $primary_hostname
diff --git a/test/stdout/0002 b/test/stdout/0002
index 00ac02a..6c195b2 100644
--- a/test/stdout/0002
+++ b/test/stdout/0002
@@ -6,6 +6,7 @@
> # Some fixed variables
>
> exim_path: TESTSUITE/eximdir/exim

+> exim_version: x.yz
> config_dir: TESTSUITE
> config_file: TESTSUITE/test-config
> primary_hostname: myhost.test.ex