From 28b8d8b5a1e3d620621bdb5f00ccd931840bb331 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Thu, 14 May 2020 16:07:04 +0200 Subject: [PATCH] Turn manpages-index.xml into a "real" book, so it can be validated. manpages-index.xml is just to easily get at each individual man page with xsltproc. It wasn't a complete docbookx xml file. Now that it is we can validate it with xmllint. It doesn't fully validate, but we are close. --- auxprogs/docs/valgrind-di-server-manpage.xml | 8 ++--- auxprogs/docs/valgrind-listener-manpage.xml | 8 ++--- cachegrind/docs/cg_annotate-manpage.xml | 8 ++--- cachegrind/docs/cg_diff-manpage.xml | 8 ++--- cachegrind/docs/cg_merge-manpage.xml | 8 ++--- coregrind/docs/vgdb-manpage.xml | 8 ++--- docs/Makefile.am | 1 + docs/xml/manpages-index.xml | 32 ++++++++++++++++++++ massif/docs/ms_print-manpage.xml | 8 ++--- 9 files changed, 61 insertions(+), 28 deletions(-) diff --git a/auxprogs/docs/valgrind-di-server-manpage.xml b/auxprogs/docs/valgrind-di-server-manpage.xml index a1244600be..e42a744bc3 100644 --- a/auxprogs/docs/valgrind-di-server-manpage.xml +++ b/auxprogs/docs/valgrind-di-server-manpage.xml @@ -25,7 +25,7 @@ - + Description valgrind-di-server accepts (multiple) connections @@ -38,7 +38,7 @@ from valgrind processes that use the - + Options @@ -74,7 +74,7 @@ from valgrind processes that use the - + See Also @@ -86,7 +86,7 @@ valgrind(1), - + Author Julian Seward. diff --git a/auxprogs/docs/valgrind-listener-manpage.xml b/auxprogs/docs/valgrind-listener-manpage.xml index b94e2a5f62..705f9001da 100644 --- a/auxprogs/docs/valgrind-listener-manpage.xml +++ b/auxprogs/docs/valgrind-listener-manpage.xml @@ -25,7 +25,7 @@ - + Description valgrind-listener accepts (multiple) connections @@ -38,7 +38,7 @@ commentary it is sent to stdout. - + Options + See Also @@ -61,7 +61,7 @@ valgrind(1), - + Author Julian Seward. diff --git a/cachegrind/docs/cg_annotate-manpage.xml b/cachegrind/docs/cg_annotate-manpage.xml index 112f1607d4..61854cf08f 100644 --- a/cachegrind/docs/cg_annotate-manpage.xml +++ b/cachegrind/docs/cg_annotate-manpage.xml @@ -27,7 +27,7 @@ - + Description cg_annotate takes an output file produced by the @@ -38,7 +38,7 @@ Valgrind tool Cachegrind and prints the information in an easy-to-read form. - + Options + See Also @@ -61,7 +61,7 @@ valgrind(1), - + Author Nicholas Nethercote. diff --git a/cachegrind/docs/cg_diff-manpage.xml b/cachegrind/docs/cg_diff-manpage.xml index c37a55acb6..1af0c15427 100644 --- a/cachegrind/docs/cg_diff-manpage.xml +++ b/cachegrind/docs/cg_diff-manpage.xml @@ -27,7 +27,7 @@ - + Description cg_diff takes two output files produced by the @@ -39,7 +39,7 @@ in the same format that Cachegrinds outputs. - + Options + See Also @@ -62,7 +62,7 @@ cg_annotate(1), valgrind(1), - + Author Nicholas Nethercote. diff --git a/cachegrind/docs/cg_merge-manpage.xml b/cachegrind/docs/cg_merge-manpage.xml index 72227b8b1c..228f9d159f 100644 --- a/cachegrind/docs/cg_merge-manpage.xml +++ b/cachegrind/docs/cg_merge-manpage.xml @@ -26,7 +26,7 @@ - + Description cg_merge sums together the outputs of multiple @@ -37,7 +37,7 @@ Cachegrind runs into a single output file. - + Options + See Also @@ -60,7 +60,7 @@ cg_annotate(1), valgrind(1), - + Author Nicholas Nethercote. diff --git a/coregrind/docs/vgdb-manpage.xml b/coregrind/docs/vgdb-manpage.xml index d5aa305358..2eeedbd490 100644 --- a/coregrind/docs/vgdb-manpage.xml +++ b/coregrind/docs/vgdb-manpage.xml @@ -25,7 +25,7 @@ - + Description vgdb ("Valgrind to GDB") is used as an @@ -38,7 +38,7 @@ intermediary between Valgrind and GDB or a shell. It has two usage modes: - + Options + See Also @@ -71,7 +71,7 @@ valgrind(1), - + Author Philippe Waroquiers. diff --git a/docs/Makefile.am b/docs/Makefile.am index f875d6dcc3..f63116b5fe 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -134,6 +134,7 @@ all-docs: FAQ.txt man-pages html-docs print-docs valid: $(XMLLINT) $(XMLLINT_FLAGS) $(myxmldir)/index.xml + $(XMLLINT) $(XMLLINT_FLAGS) $(myxmldir)/manpages-index.xml # The text version of the FAQ. FAQ.txt: diff --git a/docs/xml/manpages-index.xml b/docs/xml/manpages-index.xml index 3e422c1431..17a81c99f0 100644 --- a/docs/xml/manpages-index.xml +++ b/docs/xml/manpages-index.xml @@ -6,46 +6,78 @@ point $(XSTLPROC) at a single file and get all the man pages. --> + + +valgrind + + +cg_annotate + + +cg_diff + + +cg_merge + + +callgrind_annotate + + +callgrind_control + + +ms_print + + +valgrind-listener + + +valgrind-di-server + + +vgdb + + diff --git a/massif/docs/ms_print-manpage.xml b/massif/docs/ms_print-manpage.xml index 47a74c8764..3ac62739b5 100644 --- a/massif/docs/ms_print-manpage.xml +++ b/massif/docs/ms_print-manpage.xml @@ -26,7 +26,7 @@ - + Description ms_print takes an output file produced by the @@ -37,7 +37,7 @@ Valgrind tool Massif and prints the information in an easy-to-read form. - + Options + See Also @@ -60,7 +60,7 @@ valgrind(1), - + Author Nicholas Nethercote. -- 2.47.3