From: John Darrington Date: Sat, 5 Sep 2020 03:08:12 +0000 (+0200) Subject: po-update rule: use wget rather than rsync X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9118668193bd044e93de6623df4a5cf34a3a8605;p=pspp po-update rule: use wget rather than rsync Rsync is considered insecure these days --- diff --git a/po/automake.mk b/po/automake.mk index 2f169f338f..594d35e14f 100644 --- a/po/automake.mk +++ b/po/automake.mk @@ -123,6 +123,15 @@ po_CLEAN: fi CLEAN_LOCAL += po_CLEAN -RSYNC = rsync -po-update: - $(RSYNC) -Lrtvz translationproject.org::tp/latest/pspp/ $(srcdir)/po +# Download the po files from http://translationproject.org +# The final action to this rule is to remove the .pot file. This +# is because the po files must be re-merged against an updated version of it. +.PHONY: po-update +po-update: $(POFILES) + for p in $^; do \ + wget --recursive --level=1 --accept=po --no-directories --no-use-server-timestamps \ + --directory-prefix=po -O ${top_srcdir}/$$p,tmp \ + https://translationproject.org/latest/pspp/`basename $$p` ; \ + mv ${top_srcdir}/$$p,tmp ${top_srcdir}/$$p; \ + done + $(RM) $(POTFILE)