From nobody Mon Feb 9 02:13:21 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.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 216.205.24.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=1609867624; cv=none; d=zohomail.com; s=zohoarc; b=mEu20RJxPBpFns+KTUkgGW6uHk46/PbMcXH3icGLSQAXBqKAvXNyocG9qLMMYnde4tO7BqyZPE3eAXH1gJ5iBT2fNGJLp5XnxZZpL1SeaWm3xnG/M1cIOp7KHj/PmJ4muIbYCnCV0LijF7lQF3TRmSIENdBnFLNpLSIqgrsxL4Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1609867624; 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=007wTQR3RmASqgjwgGyTNAuaPmc+3OC6HH1mXLlELMQ=; b=D3HI8OJs/D09JvXXwgZWGwGIX4E/iqld79OhOz53CrCKI9gD3Yz+04w0PN26ruoesSB4o9JuI8nf4hKKKSIYZvM4IBBnEHS7qGJtx9KOzZOaum4rQeWeOR1cGH+LyWof4Ugl82DqGTXSDcX0vNR+z+OKu9NoOuaE/7b6g+LOCFM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 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-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1609867624185483.72640780126403; Tue, 5 Jan 2021 09:27:04 -0800 (PST) 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-272-9ISVTaiuNV2FL3Bvu0Zb_w-1; Tue, 05 Jan 2021 12:26:17 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C8BBF804006; Tue, 5 Jan 2021 17:26:11 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 547B260BFA; Tue, 5 Jan 2021 17:26:11 +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 1D5625002E; Tue, 5 Jan 2021 17:26:11 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 105HQ5RN032297 for ; Tue, 5 Jan 2021 12:26:05 -0500 Received: by smtp.corp.redhat.com (Postfix) id E0FE960C04; Tue, 5 Jan 2021 17:26:05 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-114-197.ams2.redhat.com [10.36.114.197]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0D38E60BFA; Tue, 5 Jan 2021 17:26:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1609867623; 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=007wTQR3RmASqgjwgGyTNAuaPmc+3OC6HH1mXLlELMQ=; b=NXZFz1vgh1dv+8uEq3q5WpO0Eb+g5xadXBmHB2GCxVRduFeJ49qQd77jdWyoeixG8Tvdxi ml/Al68KX/IFfpZiFmDV+5bql5ArFfflSnJqg3Sv30YPXJf00NqzAswrQEv+AeWw41zwYr dwPq0mzaB319HP0miZ1xUK/vzlPEym8= X-MC-Unique: 9ISVTaiuNV2FL3Bvu0Zb_w-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH v2 02/16] docs: don't hardcode an ancient version in manpage examples Date: Tue, 5 Jan 2021 17:25:40 +0000 Message-Id: <20210105172554.943968-3-berrange@redhat.com> In-Reply-To: <20210105172554.943968-1-berrange@redhat.com> References: <20210105172554.943968-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 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.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Subsitute in the current version so the example always reflect today's version of reality. Signed-off-by: Daniel P. Berrang=C3=A9 --- docs/manpages/libvirtd.rst | 2 +- docs/manpages/meson.build | 1 + docs/manpages/virtlockd.rst | 2 +- docs/manpages/virtlogd.rst | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/manpages/libvirtd.rst b/docs/manpages/libvirtd.rst index 2ce6284b3a..ed591f4778 100644 --- a/docs/manpages/libvirtd.rst +++ b/docs/manpages/libvirtd.rst @@ -202,7 +202,7 @@ To retrieve the version of ``libvirtd``: :: =20 # libvirtd --version - libvirtd (libvirt) 0.8.2 + libvirtd (libvirt) @VERSION@ =20 =20 To start ``libvirtd``, instructing it to daemonize and create a PID file: diff --git a/docs/manpages/meson.build b/docs/manpages/meson.build index 7156c10cc6..f6388b6262 100644 --- a/docs/manpages/meson.build +++ b/docs/manpages/meson.build @@ -71,6 +71,7 @@ endforeach docs_man_conf =3D configuration_data() docs_man_conf.set('SYSCONFDIR', sysconfdir) docs_man_conf.set('RUNSTATEDIR', runstatedir) +docs_man_conf.set('VERSION', meson.project_version()) =20 foreach data : docs_man_files rst_in_file =3D '@0@.rst'.format(data['name']) diff --git a/docs/manpages/virtlockd.rst b/docs/manpages/virtlockd.rst index 8ca231d14f..0bbee5a5f7 100644 --- a/docs/manpages/virtlockd.rst +++ b/docs/manpages/virtlockd.rst @@ -123,7 +123,7 @@ To retrieve the version of ``virtlockd``: :: =20 # virtlockd --version - virtlockd (libvirt) 1.1.1 + virtlockd (libvirt) @VERSION@ =20 To start ``virtlockd``, instructing it to daemonize and create a PID file: =20 diff --git a/docs/manpages/virtlogd.rst b/docs/manpages/virtlogd.rst index 4b749fe18e..1e39ff1b49 100644 --- a/docs/manpages/virtlogd.rst +++ b/docs/manpages/virtlogd.rst @@ -124,7 +124,7 @@ To retrieve the version of ``virtlogd``: :: =20 # virtlogd --version - virtlogd (libvirt) 1.1.1 + virtlogd (libvirt) @VERSION@ =20 To start ``virtlogd``, instructing it to daemonize and create a PID file: =20 --=20 2.29.2