From nobody Sat Feb 7 09:30:24 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1676411491; cv=none; d=zohomail.com; s=zohoarc; b=ecrF6nbqjvgbn9ljrnmYoHXzZIdJirkNxgxlTmf0zLxYDW+e7jSOvzQWMaRfgBPcfBb8wTPHNgcaUOCEDkylkWIQ5nshtaQFBFcNnHpj0bxuKhGSD5p6CuoM0n1zEEsGqRqov0NpRz4JmalglhNL9jjTE9ziP8+oHYxKjQlNJto= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1676411491; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=oR2g9x/SNqLQz3+6xy7UgOEpY5Xg2MTYoHIpE7zaw80=; b=nL6sz4oy02N7BqU3hZu3Yuc2mmMBQ0ZxcTOLakignXdEbTHOd7hcsknYsOlz8Vfh2AJ5quSy8ePTq9QoPhAY9k9LROxgNDgEfgYCklNNwm9cOzcR36VPpDedBkm++Babe3n+PBvEv7JtXO1M9oqPfEwg29pJIvVEBkn8vevRrvE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1676411491296661.0238036250747; Tue, 14 Feb 2023 13:51:31 -0800 (PST) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-324-WuZLaUg0Owmm41GQfsoYdw-1; Tue, 14 Feb 2023 16:51:28 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 25327100F907; Tue, 14 Feb 2023 21:51:25 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id C8B8840C1423; Tue, 14 Feb 2023 21:51:23 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 12DD9194658C; Tue, 14 Feb 2023 21:51:23 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 42C5A1946595 for ; Tue, 14 Feb 2023 21:51:21 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id F3CAC112131B; Tue, 14 Feb 2023 21:51:20 +0000 (UTC) Received: from speedmetal.redhat.com (ovpn-208-8.brq.redhat.com [10.40.208.8]) by smtp.corp.redhat.com (Postfix) with ESMTP id 67E071121314 for ; Tue, 14 Feb 2023 21:51:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676411490; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=oR2g9x/SNqLQz3+6xy7UgOEpY5Xg2MTYoHIpE7zaw80=; b=LGj0I0bx0vspASLw4Uwae8mY/AqGM0ixz8+cBBpjy9kXVPUyYvgCTDoLnw3gzUwE0Yzgl7 Yj7bYq3sf3BPwGkEhZdQ7CvIYe2eUxkVXpUgMovlZihX1T1iJxjjV84A1sUd3yyLMgDLiB 28GLjHSkzFkxrLf405vPWJuO/CkHQBE= X-MC-Unique: WuZLaUg0Owmm41GQfsoYdw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 2/9] scripts: check-html-references: Rename --prefix to --webroot and make it mandatory Date: Tue, 14 Feb 2023 22:51:10 +0100 Message-Id: <2e56dfeacfad81e4625eb3cd2e9ee4c2ece2735a.1676411136.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1676411492243100002 Content-Type: text/plain; charset="utf-8" Force users to pass the path to the root of the webpage the script should check. The script lives in a different subdirectory so the default of the current directory doesn't make much sense. Signed-off-by: Peter Krempa Reviewed-by: Daniel P. Berrang=C3=A9 --- docs/meson.build | 2 +- scripts/check-html-references.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/meson.build b/docs/meson.build index 5c0c762db1..5ffd39c01b 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -359,7 +359,7 @@ test( python3_prog, args: [ check_html_references_prog.full_path(), - '--prefix', + '--webroot', meson.project_build_root() / 'docs' ], env: runutf8, diff --git a/scripts/check-html-references.py b/scripts/check-html-referenc= es.py index 95a61a6bb4..6d9116585e 100755 --- a/scripts/check-html-references.py +++ b/scripts/check-html-references.py @@ -127,14 +127,14 @@ def check_targets(targets, anchors): parser =3D argparse.ArgumentParser(description=3D'HTML reference checker') -parser.add_argument('--prefix', default=3D'.', - help=3D'build tree prefix') +parser.add_argument('--webroot', required=3DTrue, + help=3D'path to the web root') parser.add_argument('--external', action=3D"store_true", help=3D'print external references instead') args =3D parser.parse_args() -files =3D get_file_list(args.prefix) +files =3D get_file_list(args.webroot) targets, anchors =3D process_all(files) --=20 2.39.1