ARC: add optional x= tag to signing
[users/jgh/exim.git] / doc / doc-docbook / GenLocalParams
1 #!/bin/sh -eu
2
3 output="${1:-local_params}"
4 : ${EXIM_VER:?Need the EXIM_VER environment variable}
5
6 nicedate="$(date +"%d %b %Y")"
7
8 if which locale >/dev/null; then
9     charset="$(locale | grep ^LC_CTYPE=)"
10 else
11     charset=unknown
12 fi
13
14 exec > "$output"
15 cat <<EOTEMPLATE
16 . # if this file changes, the build process will rebuild everything
17 . # locale's charset $charset
18 .macro version
19 ${EXIM_VER}
20 .endmacro
21 .macro fulldate
22 ${nicedate}
23 .endmacro
24 .macro year
25 $(date +%Y)
26 .endmacro
27 .macro versiondatexml
28 <revnumber>${EXIM_VER}</revnumber>
29 <date>${nicedate}</date>
30 .endmacro
31 EOTEMPLATE