Add support for automatically updating Unicode derived files
commitf85a485f89e2eb38499558c7489f108994410952
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 9 Jan 2020 08:54:47 +0000 (9 09:54 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 9 Jan 2020 09:08:14 +0000 (9 10:08 +0100)
tree6b88bcc3aca9f1da2b76fa911ee86a7b926470ca
parentf5fd995a1a24e6571d26b1e29c4dc179112b1003
Add support for automatically updating Unicode derived files

We currently have several sets of files generated from data provided
by Unicode.  These all have ad hoc rules and instructions for updating
when new Unicode versions appear, and it's not done consistently.

This patch centralizes and automates the process and makes it part of
the release checklist.  The Unicode and CLDR versions are specified in
Makefile.global.in.  There is a new make target "update-unicode" that
downloads all the relevant files and runs the generation script.

There is also a new script for generating the table of combining
characters for ucs_wcwidth().  That table is now in a separate include
file rather than hardcoded into the middle of other code.  This is
based on the script that was used for generating
d8594d123c155aeecd47fc2450f62f5100b2fbf0, but the script itself wasn't
committed at that time.

Reviewed-by: John Naylor <john.naylor@2ndquadrant.com>
Discussion: https://www.postgresql.org/message-id/flat/c8d05f42-443e-6c23-819b-05b31759a37c@2ndquadrant.com
13 files changed:
GNUmakefile.in
contrib/unaccent/.gitignore
contrib/unaccent/Makefile
contrib/unaccent/generate_unaccent_rules.py
src/Makefile.global.in
src/backend/utils/mb/Unicode/Makefile
src/backend/utils/mb/wchar.c
src/common/unicode/.gitignore
src/common/unicode/Makefile
src/common/unicode/README
src/common/unicode/generate-unicode_combining_table.pl [new file with mode: 0644]
src/include/common/unicode_combining_table.h [new file with mode: 0644]
src/tools/RELEASE_CHANGES