[gnome-logs] Fix man page check for meson



commit c20e6020930e434e3dd84a71f6eaf58f948a236e
Author: David King <davidk gnome org>
Date:   Fri Mar 15 09:50:53 2019 +0000

    Fix man page check for meson
    
    https://gitlab.gnome.org/GNOME/gnome-logs/issues/37

 meson.build | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/meson.build b/meson.build
index 041db06..baf7cc6 100644
--- a/meson.build
+++ b/meson.build
@@ -103,6 +103,7 @@ else
 endif
 
 # Manpage
+have_xsltproc = false
 have_manutils = false
 if get_option('man')
     # TODO: check xsl stylesheets as well#
@@ -113,14 +114,14 @@ if get_option('man')
     else
         have_xsltproc = false
     endif
+endif
 
-    if have_xsltproc
-        have_manutils = true
-    else
-        if not get_option('disable-man')
-            error('manpage generation requested but required utilities were not found')
-            have_manutils = false
-        endif
+if have_xsltproc
+    have_manutils = true
+else
+    if get_option('man')
+        error('manpage generation requested but required utilities were not found')
+        have_manutils = false
     endif
 endif
 


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