diff options
Diffstat (limited to 'doc/doc-docbook/GenLocalParams')
-rwxr-xr-x | doc/doc-docbook/GenLocalParams | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/doc-docbook/GenLocalParams b/doc/doc-docbook/GenLocalParams new file mode 100755 index 000000000..140890880 --- /dev/null +++ b/doc/doc-docbook/GenLocalParams @@ -0,0 +1,23 @@ +#!/bin/sh -eu + +output="${1:-local_params}" +: ${EXIM_VER:?Need the EXIM_VER environment variable} + +nicedate="$(date +"%d %b %Y")" + +exec > "$output" +cat <<EOTEMPLATE +.macro version +${EXIM_VER} +.endmacro +.macro fulldate +${nicedate} +.endmacro +.macro year +$(date +%Y) +.endmacro +.macro versiondatexml +<revnumber>${EXIM_VER}</revnumber> +<date>${nicedate}</date> +.endmacro +EOTEMPLATE |