po: Simplify wget command.
authorBen Pfaff <blp@cs.stanford.edu>
Mon, 7 Sep 2020 17:45:12 +0000 (10:45 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 7 Sep 2020 17:45:12 +0000 (10:45 -0700)
https://translationproject.org/html/maintainers.html shows all
kinds of recursive options, but that's for retrieving all of the
po files in one go.  This makefile doesn't do that, so the
recursive options don't help and provoke warnings from wget.

po/automake.mk

index 91b4e6469750220683fa85f233c8130ab051a892..d43104b039fd318f0e91dda504c9cfdbb1a73eed 100644 (file)
@@ -129,9 +129,8 @@ CLEAN_LOCAL += po_CLEAN
 PHONY += po-update
 po-update:
        for p in $(POFILES); do \
-               wget --recursive --level=1 --accept=po --no-directories --no-use-server-timestamps \
-               --directory-prefix=po -O ${top_srcdir}/$$p,tmp \
+               wget --no-use-server-timestamps -O $$p,tmp \
                https://translationproject.org/latest/pspp/`basename $$p` ; \
-               mv ${top_srcdir}/$$p,tmp ${top_srcdir}/$$p; \
+               mv $$p,tmp ${top_srcdir}/$$p; \
        done
        $(RM) $(POTFILE)