summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2016-06-06 08:32:00 -0400
committerPaul Smith <psmith@gnu.org>2016-06-06 08:32:00 -0400
commitf522852f07d390823776d48d42332d02b658db01 (patch)
treeb8a1be9aa02bbe1c84856be2e55e9be28f0e721f
parenta3d8c086d54c112fecfa2b9026a32a14f741f5f5 (diff)
* maintMakefile: TP recommends rsync for retrieving PO files.
-rw-r--r--maintMakefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/maintMakefile b/maintMakefile
index aead0e8b..c1d45097 100644
--- a/maintMakefile
+++ b/maintMakefile
@@ -144,7 +144,7 @@ ChangeLog: .check-git-HEAD
## ---------------- ##
## Updating files. ##
## ---------------- ##
-
+RSYNC = rsync -Lrtvz
WGET = wget --passive-ftp -np -nv
ftp-gnu = ftp://ftp.gnu.org/gnu
@@ -165,13 +165,14 @@ move_if_change = if test -r $(target) && cmp -s $(target).t $(target); then \
po_wget_flags = --recursive --level=1 --no-directories --no-check-certificate
po_repo = http://translationproject.org/latest/$(PACKAGE)
+po_sync = translationproject.org::tp/latest/$(PACKAGE)/
+
.PHONY: do-po-update po-update
do-po-update:
tmppo="/tmp/po-$(PACKAGE)-$(VERSION).$$$$" \
&& rm -rf "$$tmppo" \
&& mkdir "$$tmppo" \
- && (cd "$$tmppo" \
- && $(WGET) $(po_wget_flags) -A '*.po' $(po_repo)) \
+ && $(RSYNC) $(po_sync) "$$tmppo" \
&& cp "$$tmppo"/*.po $(top_srcdir)/po \
&& rm -rf "$$tmppo"
cd po && $(MAKE) update-po