From: Peter Eisentraut Date: Sun, 19 Jun 2011 20:27:56 +0000 (+0300) Subject: Produce HISTORY file consistently as ASCII X-Git-Tag: REL9_1_BETA3~57 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ec70f46c676f2f40615cad818ecc2a975698321;p=postgresql Produce HISTORY file consistently as ASCII The release notes may contain non-ASCII characters (for contributor names), which lynx converts to the encoding determined by the current locale. The get output that is deterministic and easily readable by everyone, we make lynx produce LATIN1 and then convert that to ASCII with transliteration for the non-ASCII characters. --- diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile index c5078a8080..e6c8a49df8 100644 --- a/doc/src/sgml/Makefile +++ b/doc/src/sgml/Makefile @@ -206,10 +206,19 @@ postgres.pdf: ## JADE.text = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d stylesheet.dsl -i output-text -t sgml +ICONV = iconv LYNX = lynx +# The release notes may contain non-ASCII characters (for contributor +# names), which lynx converts to the encoding determined by the +# current locale. The get output that is deterministic and easily +# readable by everyone, we make lynx produce LATIN1 and then convert +# that to ASCII with transliteration for the non-ASCII characters. +# Official releases are currently built on FreeBSD, which has limited +# locale support and is very picky about locale name spelling. The +# below has been finely tuned to run on FreeBSD and Linux/glibc. INSTALL HISTORY regress_README: % : %.html - $(PERL) -p -e 's/ $@ + $(PERL) -p -e 's/ $@ INSTALL.html: standalone-install.sgml installation.sgml version.sgml $(JADE.text) -V nochunks standalone-install.sgml installation.sgml > $@