Skip to content

Commit b524311

Browse files
author
Commitfest Bot
committed
[CF 5922] v2 - update-po for PGXS does not work
This branch was automatically generated by a robot using patches from an email thread registered at: https://commitfest.postgresql.org/patch/5922 The branch will be overwritten each time a new patch version is posted to the thread, and also periodically to check for bitrot caused by changes on the master branch. Patch(es): https://www.postgresql.org/message-id/[email protected] Author(s): Álvaro Herrera, Ryo Matsumura
2 parents 41c674d + a2e315b commit b524311

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/nls-global.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,13 @@ init-po: po/$(CATALOG_NAME).pot
142142
# For performance reasons, only calculate these when the user actually
143143
# requested update-po or a specific file.
144144
ifneq (,$(filter update-po %.po.new,$(MAKECMDGOALS)))
145+
ifdef PGXS
146+
ALL_LANGUAGES := $(shell find . -name '*.po' -print | sed 's,^.*/\([^/]*\).po$$,\1,' | LC_ALL=C sort -u)
147+
all_compendia := $(shell find . -name '*.po' -print | LC_ALL=C sort)
148+
else
145149
ALL_LANGUAGES := $(shell find $(top_srcdir) -name '*.po' -print | sed 's,^.*/\([^/]*\).po$$,\1,' | LC_ALL=C sort -u)
146150
all_compendia := $(shell find $(top_srcdir) -name '*.po' -print | LC_ALL=C sort)
151+
endif
147152
else
148153
ALL_LANGUAGES = $(AVAIL_LANGUAGES)
149154
all_compendia = FORCE

0 commit comments

Comments
 (0)