Release process: rename the scripts to be more generic
[exim.git] / doc / doc-docbook / GenLocalParams
CommitLineData
99474a17
PP
1#!/bin/sh -eu
2
3output="${1:-local_params}"
4: ${EXIM_VER:?Need the EXIM_VER environment variable}
5
6nicedate="$(date +"%d %b %Y")"
7
263c04a6
HSHR
8if which locale >/dev/null; then
9 charset="$(locale | grep ^LC_CTYPE=)"
10else
11 charset=unknown
12fi
13
99474a17
PP
14exec > "$output"
15cat <<EOTEMPLATE
263c04a6
HSHR
16. # if this file changes, the build process will rebuild everything
17. # locale's charset $charset
99474a17
PP
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
31EOTEMPLATE