Add OpenSSL version check
[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 exec > "$output"
9 cat <<EOTEMPLATE
10 .macro version
11 ${EXIM_VER}
12 .endmacro
13 .macro fulldate
14 ${nicedate}
15 .endmacro
16 .macro year
17 $(date +%Y)
18 .endmacro
19 .macro versiondatexml
20 <revnumber>${EXIM_VER}</revnumber>
21 <date>${nicedate}</date>
22 .endmacro
23 EOTEMPLATE