blob: 140890880cce318cbf1c06741ded8dbb85ff781f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
|