From patchwork Thu Dec 14 21:12:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 24948 Received: (qmail 116616 invoked by alias); 14 Dec 2017 21:12:15 -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 116598 invoked by uid 89); 14 Dec 2017 21:12:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy=Hx-languages-length:1526 X-HELO: relay1.mentorg.com Date: Thu, 14 Dec 2017 21:12:05 +0000 From: Joseph Myers To: Subject: Remove old po/ code for copying .po files from shared directory Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) po/Makefile has both old code for copying .po files from a shared directory /com/share/ftp/gnu/po/maint/glibc (presumably once present on some GNU server), and new code for downloading them from the Translation Project. This patch removes the old code, leading only the new code. Tested for x86_64. 2017-12-14 Joseph Myers * po/Makefile (linguas): Remove rule and dependencies. (linguas.mo): Likewise. (.PHONY): Do not depend on linguas and linguas.mo. (podir): Remove variable. (pofiles): Likewise. [$(pofiles)] (%.po): Remove rule. diff --git a/po/Makefile b/po/Makefile index 122db23..1fdce17 100644 --- a/po/Makefile +++ b/po/Makefile @@ -86,30 +86,9 @@ libc.pot.files: FORCE # Install the message object files as libc.po in the language directory. $(mo-installed): %.mo $(+force); $(do-install) || exit 0 -.PHONY: linguas linguas.mo -linguas: $(ALL_LINGUAS:=.po) -linguas.mo: $(ALL_LINGUAS:=.mo) - realclean: rm -f $(ALL_LINGUAS:=.mo) -# Copy the PO files from the translation coordinator's repository. - -podir = /com/share/ftp/gnu/po/maint/glibc - -pofiles := $(wildcard $(podir)/*.po) - -ifneq (,$(pofiles)) - -%.po: $(podir)/%.po - cp -f $< $@ - chmod 444 $@ - -linguas: $(pofiles:$(podir)/%=%) -linguas.mo: $(pofiles:$(podir)/%.po=%.mo) - -endif - # Update translations from the translation project. TRANSLATIONS_URL = https://translationproject.org/latest/libc WGET = wget