summaryrefslogtreecommitdiff
path: root/GNUmakefile.in
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2020-01-09 09:54:47 +0100
committerPeter Eisentraut <peter@eisentraut.org>2020-01-09 10:08:14 +0100
commitf85a485f89e2eb38499558c7489f108994410952 (patch)
tree6b88bcc3aca9f1da2b76fa911ee86a7b926470ca /GNUmakefile.in
parentf5fd995a1a24e6571d26b1e29c4dc179112b1003 (diff)
downloadpostgresql-f85a485f89e2eb38499558c7489f108994410952.tar.gz
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
Diffstat (limited to 'GNUmakefile.in')
-rw-r--r--GNUmakefile.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/GNUmakefile.in b/GNUmakefile.in
index 9dc373c79c..ee636e3b50 100644
--- a/GNUmakefile.in
+++ b/GNUmakefile.in
@@ -75,6 +75,10 @@ $(call recurse,installcheck-world,src/test src/pl src/interfaces/ecpg contrib sr
GNUmakefile: GNUmakefile.in $(top_builddir)/config.status
./config.status $@
+update-unicode: | submake-generated-headers submake-libpgport
+ $(MAKE) -C src/common/unicode $@
+ $(MAKE) -C contrib/unaccent $@
+
##########################################################################