mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2025-02-07 13:03:08 +00:00
* maintMakefile: TP recommends rsync for retrieving PO files.
This commit is contained in:
parent
a3d8c086d5
commit
f522852f07
1 changed files with 4 additions and 3 deletions
|
@ -144,7 +144,7 @@ ChangeLog: .check-git-HEAD
|
||||||
## ---------------- ##
|
## ---------------- ##
|
||||||
## Updating files. ##
|
## Updating files. ##
|
||||||
## ---------------- ##
|
## ---------------- ##
|
||||||
|
RSYNC = rsync -Lrtvz
|
||||||
WGET = wget --passive-ftp -np -nv
|
WGET = wget --passive-ftp -np -nv
|
||||||
ftp-gnu = ftp://ftp.gnu.org/gnu
|
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_wget_flags = --recursive --level=1 --no-directories --no-check-certificate
|
||||||
po_repo = http://translationproject.org/latest/$(PACKAGE)
|
po_repo = http://translationproject.org/latest/$(PACKAGE)
|
||||||
|
po_sync = translationproject.org::tp/latest/$(PACKAGE)/
|
||||||
|
|
||||||
.PHONY: do-po-update po-update
|
.PHONY: do-po-update po-update
|
||||||
do-po-update:
|
do-po-update:
|
||||||
tmppo="/tmp/po-$(PACKAGE)-$(VERSION).$$$$" \
|
tmppo="/tmp/po-$(PACKAGE)-$(VERSION).$$$$" \
|
||||||
&& rm -rf "$$tmppo" \
|
&& rm -rf "$$tmppo" \
|
||||||
&& mkdir "$$tmppo" \
|
&& mkdir "$$tmppo" \
|
||||||
&& (cd "$$tmppo" \
|
&& $(RSYNC) $(po_sync) "$$tmppo" \
|
||||||
&& $(WGET) $(po_wget_flags) -A '*.po' $(po_repo)) \
|
|
||||||
&& cp "$$tmppo"/*.po $(top_srcdir)/po \
|
&& cp "$$tmppo"/*.po $(top_srcdir)/po \
|
||||||
&& rm -rf "$$tmppo"
|
&& rm -rf "$$tmppo"
|
||||||
cd po && $(MAKE) update-po
|
cd po && $(MAKE) update-po
|
||||||
|
|
Loading…
Reference in a new issue