From 29a50aeb6f35214d2affdec3bdb796f2d0e655ba Mon Sep 17 00:00:00 2001 From: Ben Pfaff <blp@cs.stanford.edu> Date: Sat, 20 Jun 2020 21:37:06 +0000 Subject: [PATCH] gui: Fix compatibility with older gettext. Older gettext does not recognize the metainfo.xml extension, only appdata.xml. This commit allows msgfmt to work with such older setups. CC: Friedrich Beckmann <friedrich.beckmann@gmx.de> Fixes: 86c5d611b3f2 ("metainfo.xml: changed id to org.fsf.pspp, added more information") --- src/ui/gui/automake.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/gui/automake.mk b/src/ui/gui/automake.mk index 9f2a20f9a7..382202cd7c 100644 --- a/src/ui/gui/automake.mk +++ b/src/ui/gui/automake.mk @@ -378,7 +378,8 @@ PHONY += yelp-check AM_CPPFLAGS += -Isrc src/ui/gui/org.fsf.pspp.metainfo.xml: src/ui/gui/org.fsf.pspp.metainfo.xml.in $(POFILES) - $(AM_V_GEN)$(MSGFMT) --xml --template $< -o $@ -d $(top_srcdir)/po + $(AM_V_GEN)$(MSGFMT) --xml --template $< -o $@ -d $(top_srcdir)/po || \ + $(MSGFMT) -L appdata --xml --template $< -o $@ -d $(top_srcdir)/po src/ui/gui/org.fsf.pspp.desktop: src/ui/gui/org.fsf.pspp.desktop.in $(POFILES) $(AM_V_GEN)$(MSGFMT) --desktop --template $< -o $@ -d $(top_srcdir)/po -- 2.30.2