Subsitute in the current version so the example always reflect today's
version of reality.
Signed-off-by: Daniel P. Berrangé <berrange(a)redhat.com>
---
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``:
::
# libvirtd --version
- libvirtd (libvirt) 0.8.2
+ libvirtd (libvirt) @VERSION@
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 = configuration_data()
docs_man_conf.set('SYSCONFDIR', sysconfdir)
docs_man_conf.set('RUNSTATEDIR', runstatedir)
+docs_man_conf.set('VERSION', meson.project_version())
foreach data : docs_man_files
rst_in_file = '@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``:
::
# virtlockd --version
- virtlockd (libvirt) 1.1.1
+ virtlockd (libvirt) @VERSION@
To start ``virtlockd``, instructing it to daemonize and create a PID file:
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``:
::
# virtlogd --version
- virtlogd (libvirt) 1.1.1
+ virtlogd (libvirt) @VERSION@
To start ``virtlogd``, instructing it to daemonize and create a PID file:
--
2.28.0