From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS53758 23.128.96.0/24 X-Spam-Status: No, score=-4.2 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id 7EE251F670 for ; Thu, 21 Oct 2021 14:45:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231196AbhJUOrv (ORCPT ); Thu, 21 Oct 2021 10:47:51 -0400 Received: from cloud.peff.net ([104.130.231.41]:43652 "EHLO cloud.peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230283AbhJUOru (ORCPT ); Thu, 21 Oct 2021 10:47:50 -0400 Received: (qmail 15873 invoked by uid 109); 21 Oct 2021 14:45:34 -0000 Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.94) with ESMTP; Thu, 21 Oct 2021 14:45:34 +0000 Authentication-Results: cloud.peff.net; auth=none Received: (qmail 7066 invoked by uid 111); 21 Oct 2021 14:45:33 -0000 Received: from Unknown (HELO sigill.intra.peff.net) (10.0.1.3) by peff.net (qpsmtpd/0.94) with (TLS_AES_256_GCM_SHA384 encrypted) ESMTPS; Thu, 21 Oct 2021 10:45:33 -0400 Authentication-Results: peff.net; auth=none Date: Thu, 21 Oct 2021 10:45:33 -0400 From: Jeff King To: =?utf-8?B?w4Z2YXIgQXJuZmrDtnLDsA==?= Bjarmason Cc: git@vger.kernel.org, Junio C Hamano , Johannes Sixt , =?utf-8?Q?=C3=98ystein?= Walle Subject: Re: [PATCH 7/8] Makefile: stop having command-list.h depend on a wildcard Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Wed, Oct 20, 2021 at 08:39:58PM +0200, Ævar Arnfjörð Bjarmason wrote: > get_synopsis () { > + head -n 10 "Documentation/$1.txt" | > sed -n ' > /^NAME/,/'"$1"'/H > ${ > x > s/.*'"$1"' - \(.*\)/N_("\1")/ > p > - }' "Documentation/$1.txt" > + }' > } By the way, I'm not sure about the utility of this change. It reduces the number of lines that sed looks at, but at the cost of an extra process. That's probably a net loss. And if we did want to limit the data sed covers, doing "pq" after we matched would be simpler. It also feels like it's orthogonal to what this patch is doing, but maybe there's some subtle non-performance reason to want this. -Peff