Article View: linux.kernel.git
Article #2950Re: [PATCH v3 2/2] lint-docs: check the guide list in command-list.txt
From: Tuomas Ahola
Date: Wed, 11 Nov 2026 22:00
Date: Wed, 11 Nov 2026 22:00
52 lines
11222 bytes
11222 bytes
Junio C Hamano <gitster@pobox.com> wrote:
> Tuomas Ahola <taahol@utu.fi> writes:
>
> > extract_variable () {
> > + file="${2:-../Makefile}"
> > + directory="$(dirname "$file")"
> > (
> > - cat ../Makefile
> > + cat "$file"
> > cat <<EOF
> > print_variable:
> > @\$(foreach b,\$($1),echo XXX \$(b:\$X=) YYY;)
> > EOF
> > ) |
> > - make -C .. -f - print_variable 2>/dev/null |
> > + make -C "$directory" -f - print_variable 2>/dev/null |
>
> I like this sayIt pattern to prepend a snippet in front of the
> Makefile. As we allow extracting from different Makefile with this
> change, it would make more sense to (1) make the path to the Makefile
> mandatory, (2) move the path to the Makefile first, and (3) use not
> just the $1 but all the remainder of the command line as listing the
> symbols we are inquiring.
>
Hmm, sounds sensible.
> which would mean ...
>
> > @@ -87,6 +91,7 @@ check_extraneous_docs () {
> > BUILT_INS="$(extract_variable BUILT_INS)"
> > ALL_COMMANDS="$(extract_variable ALL_COMMANDS)"
> > EXCLUDED_PROGRAMS="$(extract_variable EXCLUDED_PROGRAMS)"
> > +MAN_GUIDES="$(extract_variable MAN_GUIDES ./Makefile)"
>
> These would become
>
> BUILT_INS="$(extract_variable ../Makefile BUILT_INS)"
> ALL_COMMANDS="$(extract_variable ../Makefile ALL_COMMANDS)"
> EXCLUDED_PROGRAMS="$(extract_variable ../Makefile EXCLUDED_PROGRAMS)"
> MAN_GUIDES="$(extract_variable Makefile MAN_GUIDES)"
>
Okay, I'll do that.
> Other than that, looking good.
>
> Thanks.
>
>
Technical Details
Message-ID:
<20261111220001.VKwmr%taahol@utu.fi>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-75241-linux-kernel-git=dewy.ruReferences:
<20260909052501.8448-1-taahol@utu.fi> <20261029184834.2273-1-taahol@utu.fi> <20261029184834.2273-3-taahol@utu.fi> <xmqqcxsjt6b3.fsf@gitster.g>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-75241-linux-kernel-git=dewy.ru From: taahol@utu.fi (Tuomas Ahola) Newsgroups: linux.kernel.git Subject: Re: [PATCH v3 2/2] lint-docs: check the guide list in command-list.txt Date: Thu, 12 Nov 2026 00:00:01 +0200 Organization: Usenet Network Message-ID: <20261111220001.VKwmr%taahol@utu.fi> References: <20260909052501.8448-1-taahol@utu.fi> <20261029184834.2273-1-taahol@utu.fi> <20261029184834.2273-3-taahol@utu.fi> <xmqqcxsjt6b3.fsf@gitster.g> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: usenet.network; logging-data="949715"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:2A+ZKPULwfift9v95lc0SBHvGMg= sha256:5YLprKUvDMVa2q27jnrS4OxeFyLBV8q2HnOuqa4JQL0= sha1:l4CBbZJtYz9zxqwuDnz3vbx+P/8= sha256:U8yN0KWlKcHEArAfuBzmZX07AIPSSozV1/VPG2jCr5w= List-ID: <git.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 50DD2113FF8; Thu, 12 Nov 2026 01:14:00 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.049 X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=utu.fi X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ux_zfmh9Rscn; Thu, 12 Nov 2026 01:13:57 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=git+bounces-75241-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=utu.fi X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id A2220113FEB; Thu, 12 Nov 2026 01:13:48 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 1E77DE2C0A; Wed, 11 Nov 2026 22:01:44 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail; t=1794434419; b=ulDfAP5vddUeqidL/8Y2oRR1UsJnR6iZ5GSGwUd55CKXUS2vG3/UPtX1IC+apZHzxbQZ q2JYbBiNOYGW05JJJ6WVEoKOH1oB0Tx2qeLofFhvaBnQdvtl44RupKZNSWfUem/bqKd3e qfDSHfN97R+VYW1+uKUg9lqsJd89IXmc6lQTyEUxQ3XUbltlDcQTFAA9WJfyP/dsKyeKD S+6Qws73pO7XGKsn71cVUwsqiRGk2yVe6gSq29LdYSwVozskRdkHSC3EacMQ/pDMIMYRe tm6781gWceDR+jNz+bFC2xH/pYgLAZxLSBiTdzIIhsSO/SM5ksvsOyOhxHR4OkK3e2A== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794434419; h=X-Original-To:Received:DMARC-Filter:Received:Received:Received: Received:Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: User-Agent:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: X-ClientProxiedBy:X-FEAS-BEC-Info:X-FEAS-Client-IP: X-FE-Last-Public-Client-IP:X-FE-Policy-ID:X-FE-Hostname: DKIM-Signature; bh=wf9nFLYqEflN651UFGPZn4/edKetVQlTHcnSIa4zlr4=; b=b8iJft2dvFGeigFzVuDlARYMWMLOH8/NocUu88eHiKlv7fgk0iTJO1ZcVuHf+WQ/+x8l etEg1HJFcqxIBi0byy93y85EJYAiEB6JZ77cNsV8FfaQJ40E4km6vzUne0bMbieWRUwvf mIRl6Nskx4hEdFvGhxLafRLb1UFjn1j0r8BtMIXTdzmXmMmAvCnGDifXXVDef72L8W9DR KSHQQbSc0y7a7UQ3wNFbvcLMSlZLiRFv5OSYXh9Cezb8TyVAKCRgjIk/FjZ1ozec4paME NmwyioTB1fOu5axr+Gp/D6B7Fin5dK56AcSZCncyteqQ2c/HSPqNpfB/IP/rkuHO4+Q== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=utu.fi header.i=@utu.fi header.a=rsa-sha256 header.s=out-utu-v3 header.b=nXLbjylL; dmarc=pass header.from=utu.fi; spf=pass smtp.mailfrom=utu.fi; arc=fail smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A900A60A5BCB; Wed, 11 Nov 2026 22:00:19 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=utu.fi header.i=@utu.fi header.a=rsa-sha256 header.s=out-utu-v3 header.b=nXLbjylL X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=130.232.247.4 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794434418; b=Wl0LEX0naz06L6h/hWYKWi9LZiURxI6MUPF9KGf6uIvrlmCTGiPrPCHDua5lMpSLl3d2 FZ5FL++WhcmDnSFx2IAb4+TYxo8L41RoNbI8nHl0hgiKZsBdWOpkfoavDr5ya0fMY9Ieu M+UViNoC7j2X3kmGZbCZDQVaA9Jzw8ERGm6TI8fDoFU9TDqvxYk631vBKFFUQQhZcEobO LAGlJcwoUjM/ESGcr+hXdbcwDAS3kKIUX1bnmH5M5CE1vr9NtaEAG1wW+wjLTomPrMjOl XuMdYHrLOS0KYqpft6giDE+hz+A4cTJg2chVyQ2EA/1K4bu/5iWgyrkq0lbhlBR6iMg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794434418; h=DMARC-Filter:Received:Received:Received:Received:Date:From:To:CC: Subject:Message-ID:In-Reply-To:References:User-Agent:MIME-Version: Content-Type:X-Originating-IP:X-ClientProxiedBy:X-FEAS-BEC-Info: X-FEAS-Client-IP:X-FE-Last-Public-Client-IP:X-FE-Policy-ID: X-FE-Hostname:DKIM-Signature; bh=wf9nFLYqEflN651UFGPZn4/edKetVQlTHcnSIa4zlr4=; b=3429gGhfdRPiCwU1Rt3mMck/NztECFL6wnWON6+WjtoVV8PBboBDEGOW42pipm8aFhFT f+mD3lV0jpiD0q7I4A8zFZprM2+4ui6bD5le+26k/tNs2HMWQtgJkxMUjpD98FdiIrrsE hk+pHdVAYRHY1B8wCE0cXrbV/0sENjUUfD7ez/t1GOh5E1aW+JPyLUdHmkK6GTaXZBq+a Aj8lxQI/oxLRUIPeG/l9Ii/o7/oMbevGfDmE/vm3uWBd4xb43PEgfTDfjcQFgX3kEI8Ic Up38h5SftvERYwQ7Cc0N5cr6QHqFkRutZPq3PWX4wzSfwqjnb6oGy8AP0SiS+zgzdTg== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=utu.fi; spf=pass smtp.mailfrom=utu.fi; dkim=pass header.d=utu.fi header.i=@utu.fi header.a=rsa-sha256 header.s=out-utu-v3 header.b=nXLbjylL; arc=none smtp.remote-ip=130.232.247.4 X-Received: from fortymile.utu.fi (fortymile.utu.fi [130.232.247.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 268E960A5BC3 for <git@vger.kernel.org>; Wed, 11 Nov 2026 22:00:17 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 268E960A5BC3 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=utu.fi X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=utu.fi X-Received: from smtp-04.utu.fi (smtp-04.utu.fi [130.232.207.47]) by fortymile.utu.fi with ESMTPS id 6ABM034l013147-6ABM034n013147 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 12 Nov 2026 00:00:03 +0200 X-Received: from ex19-06.utu.fi ([130.232.247.46]) by smtp-04.utu.fi with esmtps (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from <taahol@utu.fi>) id 1xRGMM-00CYDc-Ti; Thu, 12 Nov 2026 00:00:02 +0200 X-Received: from localhost (86.50.95.90) by ex19-06.utu.fi (130.232.247.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.56; Thu, 12 Nov 2026 00:00:02 +0200 X-Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 78f1773d; Wed, 11 Nov 2026 22:00:01 +0000 (UTC) X-CC: <git@vger.kernel.org>, Julia Evans <julia@jvns.ca>, Patrick Steinhardt <ps@pks.im>, Kristoffer Haugsbakk <code@khaugsbakk.name>, Jeff King <peff@peff.net> X-In-Reply-To: <xmqqcxsjt6b3.fsf@gitster.g> X-User-Agent: s-nail v14.9.22 X-Mailing-List: git@vger.kernel.org X-List-Post: <mailto:git@vger.kernel.org> X-List-Help: <mailto:git+help@vger.kernel.org> X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:git+owner@vger.kernel.org> X-Precedence: list X-ClientProxiedBy: ex19-05.utu.fi (130.232.247.45) To ex19-06.utu.fi (130.232.247.46) X-FEAS-BEC-Info: WlpIGw0aAQkEARIJHAEHBlJSCRoLAAEeDUhZUEhYSFhIWkhZXkguLT4lWFxYWFhYWFBeUVxfSFhISFlbSBwJCQAHBCgdHB1GDgFIWUhZUUgPARwoHg8NGkYDDRoGDQRG BxoPSFhIWkhZXEhZW1hGWltaRlpYX0ZcX0hQSFhIWEheSFhIWEhYSFpYSAsHDA0oAwAJHQ8bCgkDA0YGCQUNSFhIWVFIDwEcKB4PDRpGAw0aBg0ERgcaD0hYSFlfSA8B HBscDRooGAcKBxBGCwcFSFhIWVtIAh0EAQkoAh4GG0YLCUhYSFlbSBgNDg4oGA0ODkYGDRxIWEhRSBgbKBgDG0YBBUhY X-FEAS-Client-IP: 130.232.207.47 X-FE-Last-Public-Client-IP: 130.232.207.47 X-FE-Policy-ID: 3:5:2:SYSTEM X-FE-Hostname: fortymile.utu.fi X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; d=utu.fi; s=out-utu-v3; c=relaxed/relaxed; h=date:from:to:cc:subject:message-id:references:mime-version:content-type; bh=wf9nFLYqEflN651UFGPZn4/edKetVQlTHcnSIa4zlr4=; b=nXLbjylL7dDeb4zVsS2fyzfsM0SgM/mm3+NeSU4s7//Oc1FffIIBnKuO6PHIVfU1GQW3blgaZmvp faURmmXZbqMn7ZzVLWVlugVaZ1KiYoGFIiScW+xUwEMDibTFc2qJDHmP19zsSWulQ7MtDbavKduC y7CFBdEm1z8aq0Um8OC718/K3XSyOM/8hF6bi7OAQ6g21kBExUe/8EWZkIL4DjhEa1GZsUpfj1BD KEAkZv+RGMuV/udnZJgbn5P4hzi5hZ/OoidPzkjyWKvMDtSdNOLBvlRiE5RxDij0XPEOr2acwZvt GLoxiU53JJW53gh5hrklumCDKjeZJSh7IBrqRQ==