]> granicus.if.org Git - procps-ng/commitdiff
build-sys: One more man-po build fix
authorCraig Small <csmall@dropbear.xyz>
Thu, 21 Jan 2021 10:58:48 +0000 (21:58 +1100)
committerCraig Small <csmall@dropbear.xyz>
Thu, 21 Jan 2021 10:58:48 +0000 (21:58 +1100)
man-po/Makefile.am

index 240ef4bef2c60aa951efae218f3a5fa88392bd89..97f111abe162885c68b72e55176cf1d69296f871 100644 (file)
@@ -35,7 +35,9 @@ EXTRA_DIST = po4a.cfg \
             procps-man.pot \
             $(translated_MANS)
 
-LINGUAS_DIST=$(subst .po,,$(wildcard $(srcdir)/*.po))
+# Extract the list of languages from the po4a config file.
+LINGUAS_DIST = $(shell sed -ne 's/^.*\[po4a_langs\] \(.*\)$$/\1/p' $(srcdir)/po4a.cfg)
+
 # If the user has not defined it let's use the default.
 LINGUAS ?= $(LINGUAS_DIST)