From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KOCsJ2Xfs2B7VgAAgWs5BA (envelope-from ) for ; Sun, 30 May 2021 20:54:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2M7WImXfs2ASXgAAbx9fmQ (envelope-from ) for ; Sun, 30 May 2021 18:54:29 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C685C17A71 for ; Sun, 30 May 2021 20:54:28 +0200 (CEST) Received: from localhost ([::1]:38332 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnQZv-0000cc-FB for larch@yhetil.org; Sun, 30 May 2021 14:54:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41732) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnQZW-0000ay-JE for guix-patches@gnu.org; Sun, 30 May 2021 14:54:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48799) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnQZW-0006rQ-BX for guix-patches@gnu.org; Sun, 30 May 2021 14:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lnQZW-0002Rw-A1 for guix-patches@gnu.org; Sun, 30 May 2021 14:54:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48749] [PATCH] bootstrap: Simplify seach for translation languages. Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 30 May 2021 18:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48749 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48749@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16224008179380 (code B ref -1); Sun, 30 May 2021 18:54:02 +0000 Received: (at submit) by debbugs.gnu.org; 30 May 2021 18:53:37 +0000 Received: from localhost ([127.0.0.1]:60345 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnQZ6-0002RE-Vu for submit@debbugs.gnu.org; Sun, 30 May 2021 14:53:37 -0400 Received: from lists.gnu.org ([209.51.188.17]:52928) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnQZ3-0002R5-SY for submit@debbugs.gnu.org; Sun, 30 May 2021 14:53:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnQZ3-0008HO-J5 for guix-patches@gnu.org; Sun, 30 May 2021 14:53:33 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:35544) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnQZ1-0006Tw-GP for guix-patches@gnu.org; Sun, 30 May 2021 14:53:33 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4FtSHV0NMGz1qtQg for ; Sun, 30 May 2021 20:53:26 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4FtSHV0GHNz1qqkt for ; Sun, 30 May 2021 20:53:26 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id HgYGjHk1NBAd for ; Sun, 30 May 2021 20:53:24 +0200 (CEST) Received: from hermia.goebel-consult.de (ppp-188-174-57-33.dynamic.mnet-online.de [188.174.57.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Sun, 30 May 2021 20:53:24 +0200 (CEST) Received: from thisbe.fritz.box (thisbe.fritz.box [192.168.110.24]) by hermia.goebel-consult.de (Postfix) with ESMTP id F046A6027E; Sun, 30 May 2021 21:01:07 +0200 (CEST) From: Hartmut Goebel Date: Sun, 30 May 2021 20:53:21 +0200 Message-Id: <5e05990e1a70357456366b2075f1a3d185f4375f.1622400777.git.h.goebel@crazy-compilers.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=212.18.0.9; envelope-from=h.goebel@crazy-compilers.com; helo=mail-out.m-online.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622400868; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=cskRVwJP+PIhneuWm4XUM4gFCQ7Ac9TXWELzbNU7CUw=; b=Zf1uq6DKPlL9JZefBzJktUbjTCPaEwP0t5IA4l5e2QhgtJIckmZm8bZlNOCT7B0KbZ0r4V vAmMduI3Co2do7iHly6NSxJopWjb8RvZKuday4qHTsq+2YKBOrVoy3ytX8yxYNNyDDuEUU ZE+jms8nwheyhUN2+m52CEzADlWgPbdWOzpmBGYI/uYwqZu9wSum+FPTNtqB+9VknwOuMZ vkfX9FloKdSFY3N6tjvDKZQlF7Kf6DCC/myxpGMENds6tGUjVuCZS4RRwtuUb6xC/LPC3l pzAn9KPiSrWoIvZYr43LdMefmXtmLYk/ZvA4UxW2X1TzQz2yjyhb3lWH6vs88w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622400868; a=rsa-sha256; cv=none; b=DDiRXFxtGPmowZPLVGGlPr3jNGikZMsH48b9mIB3z3nCnZdTKOZwl9wPTrtkgK1yHvl+9u fKolhuHGLfJg3yzitzzDRG82oxQoajUDob+r6VgLAqkdWp6GbTbZTqzijETkd3hwUiZc13 8HvAiMxL/xCH83sHiQffYYJ4lwMp3nMpMDi2GI9WXFHmR+HYjXONPKk1KbBfzwcwB2vTeb pJLLFn1ervWxK7waX11RHDRJb3mIboYX3ygZjVe7yEczohwSQ7aQx2mmdwxhScFE/7xCKT Cow96ZRbWOiCKAw24CBUpPEikxIiv7Hs9frpaqXC/Jh7eEhPeZBp2oP+lVGJHQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 2.57 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: C685C17A71 X-Spam-Score: 2.57 X-Migadu-Scanner: scn1.migadu.com X-TUID: rmKfLHXle8K0 Extend the sed script to also behave like "basename", saving the addtional call of "xargs basename". * bootstrap (langs): Extend sed scripts, remove running xargs. --- bootstrap | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bootstrap b/bootstrap index a47269d87f..de024aeaa5 100755 --- a/bootstrap +++ b/bootstrap @@ -5,8 +5,7 @@ set -e -x # Generate stubs for translations. langs=`find po/doc -type f -name 'guix-manual*.po' \ - | sed -e 's,guix-manual\.,,' \ - | xargs -n 1 -I{} basename {} .po` + | sed -e 's,.*/guix-manual\.,,;s,\.po$,,'` for lang in ${langs}; do if [ ! -e "doc/guix.${lang}.texi" ]; then echo "@setfilename guix.${lang}.info" > "doc/guix.${lang}.texi" @@ -16,8 +15,7 @@ for lang in ${langs}; do fi done langs=`find po/doc -type f -name 'guix-cookbook*.po' \ - | sed -e 's,guix-cookbook\.,,' \ - | xargs -n 1 -I{} basename {} .po` + | sed -e 's,.*/guix-cookbook\.,,;s,\.po$,,'` for lang in ${langs}; do if [ ! -e "doc/guix-cookbook.${lang}.texi" ]; then echo "@setfilename guix-cookbook.${lang}.info" > "doc/guix-cookbook.${lang}.texi" -- 2.30.2