[network-manager-applet/lr/meson-fixes: 4/4] meson: template the version into manual pages



commit c187bb05ddcaa281177d60c3095e6f74819e75ca
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Fri Feb 15 17:45:48 2019 +0100

    meson: template the version into manual pages
    
    This essentially replaces the date with the version. That is more
    useful, consistent with NetworkManager, gets rid of a FIXME and a meson
    warnings.

 man/meson.build               | 6 ++++--
 man/nm-applet.1.in            | 2 +-
 man/nm-connection-editor.1.in | 2 +-
 3 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/man/meson.build b/man/meson.build
index 4a12eff6..5a237ab2 100644
--- a/man/meson.build
+++ b/man/meson.build
@@ -5,13 +5,15 @@ mans = [
 
 man1_dir = join_paths(nma_mandir, 'man1')
 
+man_subst = configuration_data()
+man_subst.set('VERSION', nma_version)
+
 foreach man: mans
   configure_file(
     input: man + '.in',
     output: man,
     install: true,
     install_dir: man1_dir,
-    # FIXME: empty configuration
-    configuration: configuration_data()
+    configuration: man_subst,
   )
 endforeach
diff --git a/man/nm-applet.1.in b/man/nm-applet.1.in
index 6e583b4d..7cd3c6fc 100644
--- a/man/nm-applet.1.in
+++ b/man/nm-applet.1.in
@@ -21,7 +21,7 @@
 .\"
 .\" Copyright (C) 2013 Red Hat, Inc.
 .\"
-.TH NM-APPLET "1" "15 February 2013"
+.TH NM-APPLET "1" "" "network-manager-applet @VERSION@"
 
 .SH NAME
 nm\-applet \- network monitor and control GUI applet
diff --git a/man/nm-connection-editor.1.in b/man/nm-connection-editor.1.in
index 50f697cf..0819c327 100644
--- a/man/nm-connection-editor.1.in
+++ b/man/nm-connection-editor.1.in
@@ -21,7 +21,7 @@
 .\"
 .\" Copyright (C) 2013 Red Hat, Inc.
 .\"
-.TH NM-CONNECTION-EDITOR "1" "15 February 2013"
+.TH NM-CONNECTION-EDITOR "1" "" "network-manager-applet @VERSION@"
 
 .SH NAME
 nm\-connection\-editor \- network connection editor for NetworkManager


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]