gpsd-dev
[Top][All Lists]
Advanced

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

[gpsd-dev] [PATCH v2] always install the man pages


From: Mike Frysinger
Subject: [gpsd-dev] [PATCH v2] always install the man pages
Date: Wed, 1 Aug 2012 17:33:44 -0400

Since we maintain local copies, don't require xmlto/xsltproc in
order to install them.  This makes packaging simpler.

Signed-off-by: Mike Frysinger <address@hidden>
---
v2
        - if manbuilder is disabled, and the man page doesn't exist, then
          don't try to install the man page

 SConstruct |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/SConstruct b/SConstruct
index 30db2ad..23d6f18 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1241,11 +1241,12 @@ if qt_env:
 
 
 maninstall = []
-if manbuilder:
-    for manpage in base_manpages.keys() + python_manpages.keys():
-        section = manpage.split(".")[1]
-        dest = os.path.join(installdir('mandir'), "man"+section, manpage)
-        maninstall.append(env.InstallAs(source=manpage, target=dest))
+for manpage in base_manpages.keys() + python_manpages.keys():
+    if not manbuilder and not os.path.exists(manpage):
+        continue
+    section = manpage.split(".")[1]
+    dest = os.path.join(installdir('mandir'), "man"+section, manpage)
+    maninstall.append(env.InstallAs(source=manpage, target=dest))
 install = env.Alias('install', binaryinstall + maninstall + python_install + 
pc_install + headerinstall)
 
 def Uninstall(nodes):
-- 
1.7.9.7




reply via email to

[Prev in Thread] Current Thread [Next in Thread]