From nobody Sun Feb 8 08:48:41 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 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=1594894499; cv=none; d=zohomail.com; s=zohoarc; b=TsGvrdLyP+D7jPj4hjxt1qnHx+i/hv4+IWnRwV4B4qK/yEUKlYGNoTrnEYoRXPh2kNLhyceH+wdpIrwGOIJV/QtMK9x1GG5J7/lnFa+vlR7OCBiDGT1uqf7qgRJsiD6306IhLNZdlOl5NHH+CgiEPmNfnzHXH+iT4xe5S32+p+g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594894499; 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=n6hD3qN/dvE7wms55fjxjUHtCdEaUf8ZtiHzb8e29ic=; b=ZzimsKFTDSV5XwU1QCGN4JObg9WmWuQkoe3MWoJwuViUC1HSPWAMKnra4gBJd5oV20xPR7F/NWqufiG/GGh5KSJOCBYd93QBenc0B+NYmepMayhRxDK02ULhdvBZJYBQiyyuNm8aNqbdPEhZFC+xaBxL1dELjisrW/xjP+pvUU8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1594894499550107.3832918798048; Thu, 16 Jul 2020 03:14:59 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-397-L6gJcznFPReG5C4tfdI4eA-1; Thu, 16 Jul 2020 06:14:56 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EB1321091; Thu, 16 Jul 2020 10:14:50 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C9FAC17D04; Thu, 16 Jul 2020 10:14:50 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 9793A18184AE; Thu, 16 Jul 2020 10:14:50 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 06GA7Qf6020832 for ; Thu, 16 Jul 2020 06:07:26 -0400 Received: by smtp.corp.redhat.com (Postfix) id 5F2572DE72; Thu, 16 Jul 2020 10:07:26 +0000 (UTC) Received: from antique-work.redhat.com (unknown [10.40.194.85]) by smtp.corp.redhat.com (Postfix) with ESMTP id CDD152DE81 for ; Thu, 16 Jul 2020 10:07:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594894498; 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=n6hD3qN/dvE7wms55fjxjUHtCdEaUf8ZtiHzb8e29ic=; b=VS7Yw1gq+DzjGjkQhs/msaRaeAewG0x3b41PXErlqiP7yBgdUXdBTmwevoy4Tim2vaQ5jo hCRm4WB6MDKfFcSRaWPanOvNinqX3RBZfamxaSwWQ5f5afKtKE2+F+gw8aQermA5suvefb FQTGckZB9Nn3DGvTjQGazEuEx/bM0fs= X-MC-Unique: L6gJcznFPReG5C4tfdI4eA-1 From: Pavel Hrdina To: libvir-list@redhat.com Subject: [libvirt PATCH 323/351] meson: docs: build *.html files from *.html.in files Date: Thu, 16 Jul 2020 11:59:19 +0200 Message-Id: <8cd09f030fd8df15bc0382a707103ff5772fb6a4.1594891445.git.phrdina@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Pavel Hrdina --- docs/Makefile.am | 2 - docs/meson.build | 104 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 104 insertions(+), 2 deletions(-) diff --git a/docs/Makefile.am b/docs/Makefile.am index 0c42db2badb..4e69f9ae7fa 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -281,8 +281,6 @@ manpages_DATA =3D $(manpages_html) dot_html_generated_in =3D \ hvsupport.html.in \ $(NULL) -dot_html_in =3D \ - $(notdir $(wildcard $(srcdir)/*.html.in)) dot_rst =3D \ $(notdir $(wildcard $(srcdir)/*.rst)) dot_rst_html_in =3D \ diff --git a/docs/meson.build b/docs/meson.build index fa6b1f940fe..36fd2388b69 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -27,6 +27,84 @@ docs_assets =3D [ 'node.gif', ] =20 +docs_html_in_files =3D [ + '404', + 'acl', + 'aclpolkit', + 'api_extension', + 'api', + 'apps', + 'architecture', + 'auditlog', + 'auth', + 'bindings', + 'bugs', + 'cgroups', + 'compiling', + 'contact', + 'contribute', + 'csharp', + 'dbus', + 'devguide', + 'docs', + 'downloads', + 'drivers', + 'drvbhyve', + 'drvesx', + 'drvhyperv', + 'drvlxc', + 'drvnodedev', + 'drvopenvz', + 'drvqemu', + 'drvremote', + 'drvsecret', + 'drvtest', + 'drvvbox', + 'drvvirtuozzo', + 'drvvmware', + 'drvxen', + 'errors', + 'firewall', + 'formatcaps', + 'formatdomaincaps', + 'formatdomain', + 'format', + 'formatnetwork', + 'formatnetworkport', + 'formatnode', + 'formatnwfilter', + 'formatsecret', + 'formatsnapshot', + 'formatstoragecaps', + 'formatstorageencryption', + 'formatstorage', + 'goals', + 'governance', + 'hooks', + 'index', + 'internals', + 'java', + 'kbase', + 'logging', + 'migration', + 'nss', + 'pci-hotplug', + 'php', + 'python', + 'remote', + 'securityprocess', + 'storage', + 'strategy', + 'support', + 'testapi', + 'testsuites', + 'testtck', + 'tlscerts', + 'uri', + 'virshcmdref', + 'windows', +] + install_data(docs_assets, install_dir: docs_html_dir) =20 aclperms_gen =3D custom_target( @@ -84,3 +162,29 @@ docs_rst2html_gen =3D generator( arguments: [ '--strict', '@INPUT@' ], capture: true, ) + +foreach name : docs_html_in_files + html_in_file =3D '@0@.html.in'.format(name) + html_file =3D '@0@.html'.format(name) + + custom_target( + html_file, + input: html_in_file, + output: html_file, + command: [ + meson_python_prog, + meson_html_gen_prog, + xsltproc_prog.path(), + xmllint_prog.path(), + meson.build_root(), + docs_timestamp, + site_xsl, + '@INPUT@', + '@OUTPUT@', + ], + depends: [ aclperms_gen ], + depend_files: [ page_xsl ], + install: true, + install_dir: docs_html_dir, + ) +endforeach --=20 2.26.2