From patchwork Thu Jan 12 09:46:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddhesh Poyarekar X-Patchwork-Id: 714331 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tzgsW0qLLz9t15 for ; Thu, 12 Jan 2017 20:47:26 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="I2gqIcll"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; q=dns; s= default; b=fppefxZvTEfBiIIlC3uSScMMvoPwiqiVO625yJn+lBnd+TXc8mdcE J8e5rGd2CcVIuOfC3dqyunTDNt0D5ftsnH2VbePZc2bDYYFVE32W1b66Pe2n/I35 hxHcjz4mYjmePy6vnU41QkbD1vcDc+3VXdNjLmVBd4OODkfiTV1OHc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; s=default; bh=LGSH6pAEC2RVL5/cvIA/frH434U=; b=I2gqIcll4/OMeEiH5IMG+hwx7eXF 2HzVpkKQrolRJAub1dNv+x+nMoJzKkFwmcypic80IKSgshGibs+/82nNWZBK6uIn CrMa3umQahByk4sETy3/Ut7b+cxpzo0r6g8Aac3vjgMqTFwd0DGWvbbPAHnjqyvD O/6jH5hWByFfCQM= Received: (qmail 110060 invoked by alias); 12 Jan 2017 09:47:19 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 110012 invoked by uid 89); 12 Jan 2017 09:47:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, SPF_NEUTRAL autolearn=no version=3.3.2 spammy=UD:libc.pot, Hx-languages-length:1115, libcpot, libc.pot X-HELO: homiemail-a46.g.dreamhost.com From: Siddhesh Poyarekar To: libc-alpha@sourceware.org Subject: [PATCH] Add target to incorporate translations from translations.org Date: Thu, 12 Jan 2017 15:16:57 +0530 Message-Id: <1484214417-15443-1-git-send-email-siddhesh@sourceware.org> Add a convenience target for maintainers to download and incorporate translation updates from translations.org. Invoke as follows: make -r PARALLELMFLAGS="" -C ../po objdir=`pwd` update-translations similar to generating libc.pot. This would be nice to have for the duration of the freeze but I don't mind waiting till 2.25 to commit if needed. Siddhesh * po/Makefile (update-translations): New target. --- po/Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/po/Makefile b/po/Makefile index 302c3b6..fdf8fa0 100644 --- a/po/Makefile +++ b/po/Makefile @@ -109,3 +109,14 @@ linguas: $(pofiles:$(podir)/%=%) linguas.mo: $(pofiles:$(podir)/%.po=%.mo) endif + +# Update translations from the translation project. +TRANSLATIONS_URL = http://translationproject.org/latest/libc +WGET = wget + +update-translations: + WGET -qO- $(TRANSLATIONS_URL) | sed -n 's|.*href="\([^"]\+po\)".*|\1|p' | \ + while read f; do \ + WGET -O $(objdir)/$$f-tmp $(TRANSLATIONS_URL)/$$f && \ + mv -f $(objdir)/$$f-tmp $$f; \ + done