$(AM_V_at)$(XGETTEXT) --directory=$(top_srcdir) $(XGETTEXT_OPTIONS) -j src/ui/gui/gen-dot-desktop.sh --language=shell --keyword=TRANSLATE -o $@,tmp
$(AM_V_at)$(SED) -e '/^"POT-Creation-Date: .*/d' $@,tmp > $@
$(AM_V_at)$(XGETTEXT) --directory=$(top_srcdir) $(XGETTEXT_OPTIONS) -j src/ui/gui/gen-dot-desktop.sh --language=shell --keyword=TRANSLATE -o $@,tmp
$(AM_V_at)$(SED) -e '/^"POT-Creation-Date: .*/d' $@,tmp > $@
$(AM_V_GEN)$(MSGMERGE) --quiet $(top_srcdir)/$@ $? -o $@,tmp
$(AM_V_at)if test -e $(top_srcdir)/$@,aux ; then \
touch $@,tmp ; \
msgcat --use-first $(top_srcdir)/$@,aux $@,tmp -o $@,tmp; \
fi ;
$(AM_V_GEN)$(MSGMERGE) --quiet $(top_srcdir)/$@ $? -o $@,tmp
$(AM_V_at)if test -e $(top_srcdir)/$@,aux ; then \
touch $@,tmp ; \
msgcat --use-first $(top_srcdir)/$@,aux $@,tmp -o $@,tmp; \
fi ;
+
+WGET = wget
+po-update:
+ cd $(srcdir) && rm -f $(POFILES)
+ cd $(srcdir)/po && \
+ for po in `echo '$(POFILES)' | sed 's,po/,,g'`; do \
+ $(WGET) https://translationproject.org/latest/pspp/$$po; \
+ done