diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2022-07-13 12:56:42 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2022-07-13 12:56:42 -0400 |
commit | 617d69141220f277170927e03a19d2f1b77aed77 (patch) | |
tree | 37c8cf1fe68bcbd469b86a1c7595dcf96cc5bf4c /src/bin/scripts | |
parent | ff33a8c8874b43ec55d517ce0612ed79ad08a38a (diff) | |
download | postgresql-617d69141220f277170927e03a19d2f1b77aed77.tar.gz postgresql-617d69141220f277170927e03a19d2f1b77aed77.zip |
Use wildcards instead of manually-maintained file lists in */nls.mk.
The backend already used a mechanically-generated list of *.c files,
but everywhere else we had a manually-written-out list of files in
which to seek translatable messages. Commit b0a55e432 contains the
latest in a long line of failures to update those lists. Rather than
manually fix its oversight, let's change to using "$(wildcard *.c)"
in all these nls.mk files.
Many of these files also have manual references to some *.c files
in other directories, most often src/common/. Perhaps we should try
to improve that situation too; but it's a bit less clear how, so for
now just fix the local file references.
Kyotaro Horiguchi and Tom Lane
Discussion: https://postgr.es/m/20220713.160853.453362706160476128.horikyota.ntt@gmail.com
Diffstat (limited to 'src/bin/scripts')
-rw-r--r-- | src/bin/scripts/nls.mk | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/bin/scripts/nls.mk b/src/bin/scripts/nls.mk index f4638a06f0d..52a05eb9006 100644 --- a/src/bin/scripts/nls.mk +++ b/src/bin/scripts/nls.mk @@ -1,11 +1,6 @@ # src/bin/scripts/nls.mk CATALOG_NAME = pgscripts -GETTEXT_FILES = $(FRONTEND_COMMON_GETTEXT_FILES) \ - createdb.c createuser.c \ - dropdb.c dropuser.c \ - clusterdb.c vacuumdb.c reindexdb.c \ - pg_isready.c \ - common.c \ +GETTEXT_FILES = $(FRONTEND_COMMON_GETTEXT_FILES) $(wildcard *.c) \ ../../fe_utils/parallel_slot.c \ ../../fe_utils/cancel.c ../../fe_utils/print.c \ ../../fe_utils/connect_utils.c \ |