summaryrefslogtreecommitdiff
path: root/doc/doc-docbook/GenLocalParams
diff options
context:
space:
mode:
authorHeiko Schlittermann (HS12) <hs@schlittermann.de>2015-05-10 16:01:44 +0200
committerHeiko Schlittermann (HS12) <hs@schlittermann.de>2015-05-10 16:29:03 +0200
commit263c04a6b6ad8a18c9cdb7da847b695f0a8d6787 (patch)
tree47bc72014cf1fec21e0a96eb54411f5a0d4fe2a3 /doc/doc-docbook/GenLocalParams
parentd2a2c69b7b97d080d63dfb434584d98eb3228332 (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-xdoc/doc-docbook/GenLocalParams8
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