summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2019-02-15 17:45:48 +0100
committerLubomir Rintel <lkundrak@v3.sk>2019-02-15 17:47:30 +0100
commitc187bb05ddcaa281177d60c3095e6f74819e75ca (patch)
tree2fefa3367f701b57c3d6a25605c9e9d712312f67
parent8a4055644fdced736e870c8763e9c09f966d9071 (diff)
downloadnetwork-manager-applet-c187bb05ddcaa281177d60c3095e6f74819e75ca.tar.gz
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.
-rw-r--r--man/meson.build6
-rw-r--r--man/nm-applet.1.in2
-rw-r--r--man/nm-connection-editor.1.in2
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