Article View: linux.kernel.git
Article #2243Re: [PATCH v3 2/2] lint-docs: check the guide list in command-list.txt
From: Tuomas Ahola
Date: Tue, 03 Nov 2026 17:09
Date: Tue, 03 Nov 2026 17:09
66 lines
11789 bytes
11789 bytes
"Julia Evans" <julia@jvns.ca> wrote:
> On Thu, Oct 29, 2026, at 2:48 PM, Tuomas Ahola wrote:
> > diff --git a/Documentation/lint-manpages.sh b/Documentation/lint-manpages.sh
> > index a0ea572382..31ee3cbe72 100755
> > --- a/Documentation/lint-manpages.sh
> > +++ b/Documentation/lint-manpages.sh
> > @@ -1,21 +1,23 @@
> > #!/bin/sh
> >
> > extract_variable () {
> > + file="${2:-../Makefile}"
>
> I think what's happening here is that previously we were
> getting the variables from ./Makefile (in the basedir), but now we need
> some variables from ./Makefile and some from Documentation/Makefile.
>
> Would it make sense to get all the variables from Documentation/Makefile?
>
If that's possible, then sure, why not. But I think we are mostly extracting
from the top-level Makefile such information that simply isn't available in the
docs Makefile (and vice versa)?
> > + 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 |
> > sed -n -e 's/.*XXX \(.*\) YYY.*/\1/p'
> > }
> >
> > check_missing_docs () (
> > ret=0
> >
> > - for v in $ALL_COMMANDS
> > + for v in $ALL_COMMANDS $MAN_GUIDES
> > do
> > case "$v" in
> > git-merge-octopus) continue;;
> > @@ -29,6 +31,8 @@ check_missing_docs () (
> > git-stage) continue;;
> > git-legacy-*) continue;;
> > git-?*--?* ) continue ;;
> > + gittutorial-2) continue ;;
> > + gitweb.conf) continue ;;
> > esac
> >
> > if ! test -f "$v.adoc"
> > @@ -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)"
> >
> > findings=$(
> > if ! check_missing_docs
> > --
> > ta/command-list-guides-sync-lint
Technical Details
Message-ID:
<20261103170944.kmZMv%taahol@utu.fi>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74324-linux-kernel-git=dewy.ruReferences:
<20260909052501.8448-1-taahol@utu.fi> <20261029184834.2273-1-taahol@utu.fi> <20261029184834.2273-3-taahol@utu.fi> <48aa1e9a-3049-4316-9054-644a8754b0dd@app.fastmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74324-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: Tue, 3 Nov 2026 19:09:44 +0200 Organization: Usenet Network Message-ID: <20261103170944.kmZMv%taahol@utu.fi> References: <20260909052501.8448-1-taahol@utu.fi> <20261029184834.2273-1-taahol@utu.fi> <20261029184834.2273-3-taahol@utu.fi> <48aa1e9a-3049-4316-9054-644a8754b0dd@app.fastmail.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: usenet.network; logging-data="3221355"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:NvYAawaPIyisccqdJJquqPo31+o= sha256:R4wv0QGAWbS9wesIdW+EFq5VjtIw7cGj5CK3R3roTuY= sha1:UeW0wMQkOWFHtNbPM06jsDH+oBU= sha256:JVjQ/XfXdipsdYSs5vlXf9KJfNcr7dLt+LI3quPTbG4= 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 44E7311296F; Tue, 3 Nov 2026 20:33:48 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -1.95 X-Spam-Status: No, score=-1.95 tagged_above=-9999 required=6.31 tests=[DCC_CHECK=1.1, 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] 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 0wKDqxEn2mP8; Tue, 3 Nov 2026 20:33:45 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=git+bounces-74324-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 B0764112965; Tue, 3 Nov 2026 20:33:35 +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 EC1A9313AF; Tue, 3 Nov 2026 17:10:14 +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=1793725813; b=nRms9YVhcW+H+LMyhU9wbS8I1485tAKCNSkTxN1nf2T03yhWMVtUUn1XiczLgAYkt+7E M9elwfgQkwVO1tE+hBA1Oia4AZlitRa7BEVHPild9sWprS1wdsGNZZ9Y9D2Zr2ZyZ36b9 zfxZ+yiEd6Ys2ASq7J/Wb+x5xgKvlw20kHKymELa7+W3eLlE0EjOfU6/HGEJaxiTIEdAS T/SkLEJ44V0OaZSPJN7LFG6HGKab/+B/vENtP22Jc9KZgLKi3Qh5EyzSypI3pCDgqMRGO eWsxyqjpnxQypZa2C1Un1VNOoz8SQMPFqhXvGjMbOsK9kPIzxum3Ce74yru1PClgY+w== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793725813; 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=FT7UjN3V7E8amGBrkiBHNu6+HHVXS6szCC8NW8cQjE0=; b=eL65++oYSVZvnQHaA5t3k0tJu0G54ClacHqnzlD09XuXEXwPQlux26UGSA4dFyeKU3B7 2M8osc2r8sRc1DorzHVGio+EKMBspJmfyendJwJMEM7cnIrk+AL+zN4Fr5zIQqgfyNoMb wJPZTfJphsht7VGLcRjSlC4qsiLTI6wmyymVK0BMP3kdjUkQWhclpskzclexx1P/9+o8n TLBpCTNMqAmlqP84vRFYhsBaRbfkKjl5MUNGKjz1qbX/OTGd0aS/wzvwY5fLLvBu7Mqnf Qrd/Jqy90czVbL2i7RmdpEwEZBhCttScGsxjuqVOph8PcGOlZKBoFHgzwL7+M0lnLdg== 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=KbHhGsLX; 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 99FC2606A33A; Tue, 3 Nov 2026 17:10:13 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=utu.fi header.i=@utu.fi header.a=rsa-sha256 header.s=out-utu-v3 header.b=KbHhGsLX 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=1793725812; b=YEcyW9M4no/3GOIhe2irpVAEVixsIO/I3SXk1Yn53uICjPqmvmPLOdzdKrB2wkwLGefx Ux/M+UcPuaanBriHM2gaega1DTW511c6ESzbH2m5pGZMDh0ef7IIOmruUwrOr0GcDJ2mn 2OWgkLEEa4Vl2d60jkXcqHbtnKq+Q4DcK185U6WEFWlsCO2JdP1HnQRaaYQbOvbrMGih6 yeir/9RE9v+fX1/l7BJa55Twx9rJN3RvFpOW0VWQbFpjq/JULFqxh3stsI3hS9QMMw3ac jerFSQ16ziuDxrweHiaBunc6qsiQEXU2K5uB6cLWB7aPLOUvcIwV6FsruMOz6/8HtHA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793725812; 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=FT7UjN3V7E8amGBrkiBHNu6+HHVXS6szCC8NW8cQjE0=; b=Sj1xOevW3NxbLcIwGbxERzv1LwWkq2rsmskRBOP0jgYOKk4+bdJucSH4/jJuB18zZAcj AF7OYMz6DIX6EymnxhG1pHKUakqDkUbE/FS193tVEQZhmVr+JF1piTPehufbnyz9xKh36 DGZhY6Uj6ohNLWSPDnI2juCKIf4ZSsvbEKEsLWenUFeDk3gQZcIryTdHXYssswDWm0SBP m+p2GSDWY+q68ciOU4eb1XWmomf3GX/HIfEreydr/nQXQ4d/fBDgqOMDsxXIn0VgzJmMe LimI/br9sKwUuwQ/4QtQ9fDDzAngCGhpF/vQXJHabU/q80DHhqD6a5cDxmAcEiOJQ2g== 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=KbHhGsLX; 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 B8DF8606A324 for <git@vger.kernel.org>; Tue, 3 Nov 2026 17:10:09 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B8DF8606A324 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-03.utu.fi (smtp-03.utu.fi [130.232.207.30]) by fortymile.utu.fi with ESMTPS id 6A3H9inv022289-6A3H9inx022289 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Tue, 3 Nov 2026 19:09:45 +0200 X-Received: from ex19-06.utu.fi ([130.232.247.46]) by smtp-03.utu.fi with esmtps (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from <taahol@utu.fi>) id 1xOI12-002556-LT; Tue, 03 Nov 2026 19:09:44 +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; Tue, 3 Nov 2026 19:09:44 +0200 X-Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 04e48d1a; Tue, 3 Nov 2026 17:09:44 +0000 (UTC) X-CC: <git@vger.kernel.org>, Junio C Hamano <gitster@pobox.com>, Patrick Steinhardt <ps@pks.im>, Kristoffer Haugsbakk <code@khaugsbakk.name>, Jeff King <peff@peff.net> X-In-Reply-To: <48aa1e9a-3049-4316-9054-644a8754b0dd@app.fastmail.com> 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-10.utu.fi (130.232.247.50) To ex19-06.utu.fi (130.232.247.46) X-FEAS-BEC-Info: WlpIGw0aAQkEARIJHAEHBlJSCRoLAAEeDUhZUEhYSFhIWkhZXkguLT4lWFxYWFhYWFBeUVxfSFhISFlbSBwJCQAHBCgdHB1GDgFIWUhZW0gYDQ4OKBgNDg5GBg0cSFhI WkhZXEhZW1hGWltaRlpYX0ZbWEhQSFhIWEheSFhIWEhYSFpYSAsHDA0oAwAJHQ8bCgkDA0YGCQUNSFhIWVFIDwEcKB4PDRpGAw0aBg0ERgcaD0hYSFlfSA8BHBscDRoo GAcKBxBGCwcFSFhIWVtIAh0EAQkoAh4GG0YLCUhYSFlbSBgNDg4oGA0ODkYGDRxIWEhRSBgbKBgDG0YBBUhY X-FEAS-Client-IP: 130.232.207.30 X-FE-Last-Public-Client-IP: 130.232.207.30 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=FT7UjN3V7E8amGBrkiBHNu6+HHVXS6szCC8NW8cQjE0=; b=KbHhGsLXnb0Te/isZShZ81Z0fYVFsyHxOdj0MsnkVdkbUBViL6I/mQDQeqLpFmAfO5eDJzLpTs3D /yvOKgu+nlwSTmGCVsMHCk9uO2EmByPwhfmXL46TyC9IJStc3KPg9mjdJ/4AOWYk65Y/5ov8RO9k Yd19Az4QWj23MKpdkg4ECx+eXZ82WM945+aa+m4+GcUdVI0pIcvZBGONoQWouWjfWWy7UQva0CqN RpM+w1ubrMURmQmS1/QxAnCe5u09S3kA9hLINasgv6lOJwzMIEdFAf/s/vbiE9u/nqpxktDQMjP6 uCMf0AhlC7+bNdvN7/DSjtlBLK59fFqPZ3O3+w==