[libxml2] Consolidate man pages



commit 61b78b0aa6efc16dba8b40bf5347a61fda0f6d39
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Sun Apr 3 18:30:26 2022 +0200

    Consolidate man pages
    
    Move xml2-config.1 into doc directory. Remove outdated libxml.3.

 CMakeLists.txt                     |  2 +-
 Makefile.am                        |  4 +--
 doc/Makefile.am                    |  2 +-
 xml2-config.1 => doc/xml2-config.1 |  0
 libxml.3                           | 71 --------------------------------------
 libxml.spec.in                     |  1 -
 6 files changed, 3 insertions(+), 77 deletions(-)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fb384545..a9104ffe 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -603,7 +603,7 @@ if(LIBXML2_WITH_PYTHON)
        install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libxml2.py DESTINATION ${LIBXML2_PYTHON_INSTALL_DIR} 
COMPONENT runtime)
 endif()
 
-install(FILES libxml.3 DESTINATION ${CMAKE_INSTALL_MANDIR}/man3 COMPONENT documentation)
+install(FILES doc/xml2-config.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT documentation)
 install(FILES doc/xmlcatalog.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT documentation)
 install(FILES doc/xmllint.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT documentation)
 install(DIRECTORY doc/ DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/libxml2 COMPONENT documentation PATTERN 
Makefile.* EXCLUDE)
diff --git a/Makefile.am b/Makefile.am
index 71543e41..922938b3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -58,8 +58,6 @@ DEPS = $(top_builddir)/libxml2.la
 LDADDS = $(top_builddir)/libxml2.la
 
 
-man_MANS = xml2-config.1 libxml.3
-
 m4datadir = $(datadir)/aclocal
 m4data_DATA = libxml.m4
 
@@ -1250,7 +1248,7 @@ EXTRA_DIST = xml2-config.in xml2Conf.sh.in libxml.spec.in libxml2.spec \
             check-relaxng-test-suite.py check-relaxng-test-suite2.py \
             check-xsddata-test-suite.py check-xinclude-test-suite.py \
              example/Makefile.am example/gjobread.c example/gjobs.xml \
-            $(man_MANS) libxml-2.0.pc.in libxml-2.0-uninstalled.pc.in \
+            libxml-2.0.pc.in libxml-2.0-uninstalled.pc.in \
             libxml2-config.cmake.in autogen.sh \
             trionan.c trionan.h triostr.c triostr.h trio.c trio.h \
             triop.h triodef.h libxml.h xzlib.h buf.h \
diff --git a/doc/Makefile.am b/doc/Makefile.am
index a1814973..5daef3e6 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -54,7 +54,7 @@ nobase_dist_doc_DATA = \
        xmlcatalog.html \
        xmllint.html
 
-dist_man_MANS = xmllint.1 xmlcatalog.1
+dist_man_MANS = xml2-config.1 xmllint.1 xmlcatalog.1
 
 EXTRA_DIST = \
        apibuild.py \
diff --git a/xml2-config.1 b/doc/xml2-config.1
similarity index 100%
rename from xml2-config.1
rename to doc/xml2-config.1
diff --git a/libxml.spec.in b/libxml.spec.in
index 73c6fd9e..ea593d0e 100644
--- a/libxml.spec.in
+++ b/libxml.spec.in
@@ -144,7 +144,6 @@ rm -fr %{buildroot}
 %doc NEWS README.md Copyright TODO
 %doc %{_mandir}/man1/xmllint.1*
 %doc %{_mandir}/man1/xmlcatalog.1*
-%doc %{_mandir}/man3/libxml.3*
 
 %{_libdir}/lib*.so.*
 %{_bindir}/xmllint


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