diff options
author | Heiko Schlittermann (HS12) <hs@schlittermann.de> | 2015-05-10 16:01:44 +0200 |
---|---|---|
committer | Heiko Schlittermann (HS12) <hs@schlittermann.de> | 2015-05-10 16:29:03 +0200 |
commit | 263c04a6b6ad8a18c9cdb7da847b695f0a8d6787 (patch) | |
tree | 47bc72014cf1fec21e0a96eb54411f5a0d4fe2a3 /doc/doc-docbook/GenLocalParams | |
parent | d2a2c69b7b97d080d63dfb434584d98eb3228332 (diff) |
Docs: Make build unicode resistant
Force LC_ALL=C for spec.txt. Add an additional build target:
spec.utf8.
Diffstat (limited to 'doc/doc-docbook/GenLocalParams')
-rwxr-xr-x | doc/doc-docbook/GenLocalParams | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/doc-docbook/GenLocalParams b/doc/doc-docbook/GenLocalParams index 140890880..fc8e7fc58 100755 --- a/doc/doc-docbook/GenLocalParams +++ b/doc/doc-docbook/GenLocalParams @@ -5,8 +5,16 @@ output="${1:-local_params}" nicedate="$(date +"%d %b %Y")" +if which locale >/dev/null; then + charset="$(locale | grep ^LC_CTYPE=)" +else + charset=unknown +fi + exec > "$output" cat <<EOTEMPLATE +. # if this file changes, the build process will rebuild everything +. # locale's charset $charset .macro version ${EXIM_VER} .endmacro |