postgres.git / summary / log / commit / refs

commit    58b4f366c0c4b3a5d65269f01150e4ec04cb20a2
Author:   Peter Eisentraut <peter@eisentraut.org>
Date:     Wed Jul 13 07:15:01 2022 +0000
First released in: 16.0

    Fix for make unportability
    
    88dad06b47eb80f699211c9b0b7a1c6d9016ad19 contains a make $(shell)
    construct that apparently confuses older GNU make versions (possibly
    because of the # inside the shell command?).  This construct, which
    would allow # comments inside LINGUAS files, was adapted from gettext
    recommendations, but we don't actually need that functionality, so
    sidestep this whole issue by just using plain "cat".
    
    In passing, make this code work with vpath.


src/nls-global.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nls-global.mk b/src/nls-global.mk index ba4f5698038..f21bd5ed555 100644 --- a/src/nls-global.mk +++ b/src/nls-global.mk @@ -29,7 +29,7 @@ # existence checked by Makefile.global; otherwise we won't get here include $(srcdir)/nls.mk -AVAIL_LANGUAGES := $(shell sed -e "/^#/d" -e "s/#.*//" po/LINGUAS) +AVAIL_LANGUAGES := $(shell cat $(srcdir)/po/LINGUAS) # If user specified the languages he wants in --enable-nls=LANGUAGES, # filter out the rest. Else use all available ones. [parent: 88dad06b47eb]