Skip to content

Commit 58b4f36

Browse files
committed
Fix for make unportability
88dad06 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.
1 parent 88dad06 commit 58b4f36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nls-global.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# existence checked by Makefile.global; otherwise we won't get here
3030
include $(srcdir)/nls.mk
3131

32-
AVAIL_LANGUAGES := $(shell sed -e "/^#/d" -e "s/#.*//" po/LINGUAS)
32+
AVAIL_LANGUAGES := $(shell cat $(srcdir)/po/LINGUAS)
3333

3434
# If user specified the languages he wants in --enable-nls=LANGUAGES,
3535
# filter out the rest. Else use all available ones.

0 commit comments

Comments
 (0)