Blame SOURCES/0001-Generate-manpage.patch
|
|
caac3e |
From 71e2451c6ba4d5f17de9e24687b66b93f2e58954 Mon Sep 17 00:00:00 2001
|
|
|
caac3e |
From: Stephen Gallagher <sgallagh@redhat.com>
|
|
|
caac3e |
Date: Mon, 17 Sep 2018 09:58:25 -0400
|
|
|
fdb9ce |
Subject: [PATCH 1/6] Generate manpage
|
|
|
caac3e |
|
|
|
caac3e |
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
|
|
|
caac3e |
---
|
|
|
caac3e |
meson.build | 22 +++++++++++++++++++++-
|
|
|
caac3e |
1 file changed, 21 insertions(+), 1 deletion(-)
|
|
|
caac3e |
|
|
|
caac3e |
diff --git a/meson.build b/meson.build
|
|
|
caac3e |
index e6f33475cce6891d17656bcd10e1afabd43bdc07..a2ca4ba1472bfff61fbbd30ba1ddc7ecc89e723c 100644
|
|
|
caac3e |
--- a/meson.build
|
|
|
caac3e |
+++ b/meson.build
|
|
|
fdb9ce |
@@ -7,7 +7,7 @@ project('sscg', 'c',
|
|
|
caac3e |
'b_asneeded=true',
|
|
|
caac3e |
],
|
|
|
caac3e |
license : 'MIT',
|
|
|
caac3e |
- meson_version : '>=0.36.0')
|
|
|
caac3e |
+ meson_version : '>=0.40.0')
|
|
|
caac3e |
|
|
|
caac3e |
cc = meson.get_compiler('c')
|
|
|
caac3e |
test_cflags = [
|
|
|
fdb9ce |
@@ -141,3 +141,23 @@ configure_file(
|
|
|
caac3e |
output : 'config.h',
|
|
|
caac3e |
configuration : cdata)
|
|
|
caac3e |
|
|
|
caac3e |
+# Generate a manpage from the POPT documentation
|
|
|
caac3e |
+help2man = find_program('help2man')
|
|
|
caac3e |
+
|
|
|
caac3e |
+manpage = custom_target('manpage',
|
|
|
caac3e |
+ output : 'sscg.8',
|
|
|
caac3e |
+ capture : true,
|
|
|
caac3e |
+ command : [
|
|
|
caac3e |
+ help2man,
|
|
|
caac3e |
+ '-s', '8',
|
|
|
caac3e |
+ '-n', 'Tool for generating x.509 certificates',
|
|
|
caac3e |
+ '-N',
|
|
|
caac3e |
+ sscg,
|
|
|
caac3e |
+ ],
|
|
|
caac3e |
+ install : true,
|
|
|
caac3e |
+ build_by_default : true,
|
|
|
caac3e |
+ install_dir : join_paths(
|
|
|
caac3e |
+ get_option('prefix'),
|
|
|
caac3e |
+ get_option('mandir'),
|
|
|
caac3e |
+ 'man8'),
|
|
|
caac3e |
+)
|
|
|
caac3e |
--
|
|
|
fdb9ce |
2.23.0
|
|
|
caac3e |
|