| 1 |
--- a/CMakeLists.txt |
| 2 |
+++ b/CMakeLists.txt |
| 3 |
@@ -484,8 +484,6 @@ if(UNIX AND NOT APPLE) |
| 4 |
USES_TERMINAL) |
| 5 |
endif() |
| 6 |
|
| 7 |
-get_property(_isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) |
| 8 |
-if((CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR) AND NOT _isMultiConfig) |
| 9 |
set(GPSBABEL_WEB "gpsbabel.org" CACHE PATH "Path where the documentation will be stored for www.gpsbabel.org.") |
| 10 |
add_custom_target(gpsbabel.org |
| 11 |
${CMAKE_SOURCE_DIR}/tools/make_gpsbabel_org.sh ${GPSBABEL_WEB} ${GPSBABEL_DOCVERSION} |
| 12 |
@@ -504,6 +502,3 @@ if((CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR) AND NOT _isMultiConfig) |
| 13 |
DEPENDS gpsbabel |
| 14 |
VERBATIM |
| 15 |
USES_TERMINAL) |
| 16 |
-else() |
| 17 |
- message(WARNING "Document generation is only supported for in-source builds with single configuration generators.") |
| 18 |
-endif() |
| 19 |
--- a/gbversion.h.in |
| 20 |
+++ b/gbversion.h.in |
| 21 |
@@ -16,5 +16,5 @@ |
| 22 |
#define VERSION "@GB.MAJOR@[email protected]@[email protected]@@GB.PACKAGE_RELEASE@" |
| 23 |
constexpr char kVersionSHA[] = "@GB.SHA@"; |
| 24 |
constexpr char kVersionDate[] = "@GB.DATE@"; |
| 25 |
-#define WEB_DOC_DIR "https://www.gpsbabel.org/htmldoc-@GPSBABEL_DOCVERSION@" |
| 26 |
+#define WEB_DOC_DIR "file:///usr/share/doc/gpsbabel/html" |
| 27 |
#endif |
| 28 |
--- a/testo.d/serialization.test |
| 29 |
+++ b/testo.d/serialization.test |
| 30 |
@@ -7,7 +7,7 @@ |
| 31 |
# the GUI and the document. |
| 32 |
# We do a compare_nole as specific whitespace is part of deserialization. |
| 33 |
gpsbabel -^3 > ${TMPDIR}/format3.txt |
| 34 |
-sed 's,https://www.gpsbabel.org/htmldoc-.[^/]*/,https://www.gpsbabel.org/WEB_DOC_DIR/,' ${TMPDIR}/format3.txt >${TMPDIR}/format3.fiddled.txt |
| 35 |
+sed 's,file:///usr/share/doc/gpsbabel/html/,https://www.gpsbabel.org/WEB_DOC_DIR/,' ${TMPDIR}/format3.txt >${TMPDIR}/format3.fiddled.txt |
| 36 |
compare_nole ${REFERENCE}/format3.txt ${TMPDIR}/format3.fiddled.txt |
| 37 |
gpsbabel -^2 > ${TMPDIR}/format2.txt |
| 38 |
compare_nole ${REFERENCE}/format2.txt ${TMPDIR}/format2.txt |
| 39 |
@@ -16,7 +16,7 @@ compare_nole ${REFERENCE}/format1.txt ${TMPDIR}/format1.txt |
| 40 |
gpsbabel -^0 > ${TMPDIR}/format0.txt |
| 41 |
compare_nole ${REFERENCE}/format0.txt ${TMPDIR}/format0.txt |
| 42 |
gpsbabel -%1 > ${TMPDIR}/filter1.txt |
| 43 |
-sed 's,https://www.gpsbabel.org/htmldoc-.[^/]*/,https://www.gpsbabel.org/WEB_DOC_DIR/,' ${TMPDIR}/filter1.txt >${TMPDIR}/filter1.fiddled.txt |
| 44 |
+sed 's,file:///usr/share/doc/gpsbabel/html/,https://www.gpsbabel.org/WEB_DOC_DIR/,' ${TMPDIR}/filter1.txt >${TMPDIR}/filter1.fiddled.txt |
| 45 |
compare_nole ${REFERENCE}/filter1.txt ${TMPDIR}/filter1.fiddled.txt |
| 46 |
gpsbabel -%0 > ${TMPDIR}/filter0.txt |
| 47 |
compare_nole ${REFERENCE}/filter0.txt ${TMPDIR}/filter0.txt |
| 48 |
--- a/tools/make_gpsbabel_doc.sh |
| 49 |
+++ b/tools/make_gpsbabel_doc.sh |
| 50 |
@@ -1,8 +1,8 @@ |
| 51 |
#!/bin/sh |
| 52 |
set -ex |
| 53 |
|
| 54 |
-perl xmldoc/makedoc |
| 55 |
-xmllint --noout --relaxng http://docbook.org/xml/5.0/rng/docbook.rng xmldoc/readme.xml |
| 56 |
+perl ../xmldoc/makedoc |
| 57 |
+xmllint --noout --relaxng /usr/share/xml/docbook/stylesheet/docbook-xsl/slides/schema/relaxng/docbook.rng ../xmldoc/readme.xml |
| 58 |
# the following doesn't seem to work. |
| 59 |
#xmllint --noout --schematron http://docbook.org/xml/5.0/sch/docbook.sch xmldoc/readme.xml |
| 60 |
# jing and many depedencies removed from fedora |
| 61 |
--- a/tools/make_gpsbabel_org.sh |
| 62 |
+++ b/tools/make_gpsbabel_org.sh |
| 63 |
@@ -5,13 +5,10 @@ web=${1:-gpsbabel.org} |
| 64 |
docversion=${2:-x.y.z} |
| 65 |
tooldir=$(cd "$(dirname "$0")" && pwd) |
| 66 |
|
| 67 |
-mkdir -p "${web}/htmldoc-${docversion}" |
| 68 |
+mkdir -p "html" |
| 69 |
"$tooldir"/make_gpsbabel_doc.sh |
| 70 |
xsltproc \ |
| 71 |
- --stringparam base.dir "${web}/htmldoc-${docversion}/" \ |
| 72 |
+ --stringparam base.dir "html" \ |
| 73 |
--stringparam root.filename "index" \ |
| 74 |
- xmldoc/babelmain.xsl \ |
| 75 |
- xmldoc/readme.xml |
| 76 |
-"${tooldir}"/fixdoc "${web}/htmldoc-${docversion}" "GPSBabel ${docversion}:" |
| 77 |
-"${tooldir}"/mkcapabilities "${web}" "${web}/htmldoc-${docversion}" |
| 78 |
-cp gpsbabel.pdf "${web}/htmldoc-${docversion}/gpsbabel-${docversion}.pdf" |
| 79 |
+ ../xmldoc/babelmain.xsl \ |
| 80 |
+ ../xmldoc/readme.xml |
| 81 |
--- a/tools/make_gpsbabel_pdf.sh |
| 82 |
+++ b/tools/make_gpsbabel_pdf.sh |
| 83 |
@@ -4,5 +4,5 @@ set -ex |
| 84 |
tooldir=$(cd "$(dirname "$0")" && pwd) |
| 85 |
|
| 86 |
"$tooldir"/make_gpsbabel_doc.sh |
| 87 |
-xsltproc -o gpsbabel.fo xmldoc/babelpdf.xsl xmldoc/readme.xml |
| 88 |
+xsltproc -o gpsbabel.fo ../xmldoc/babelpdf.xsl ../xmldoc/readme.xml |
| 89 |
HOME=. fop -q -fo gpsbabel.fo -pdf gpsbabel.pdf |
| 90 |
--- a/xmldoc/babelmain.xsl |
| 91 |
+++ b/xmldoc/babelmain.xsl |
| 92 |
@@ -4,7 +4,7 @@ |
| 93 |
exclude-result-prefixes="exsl"> |
| 94 |
|
| 95 |
|
| 96 |
-<xsl:import href="http://docbook.sourceforge.net/release/xsl-ns/current/xhtml/chunk.xsl"/> |
| 97 |
+<xsl:import href="/usr/share/xml/docbook/stylesheet/docbook-xsl/xhtml/chunk.xsl"/> |
| 98 |
|
| 99 |
<xsl:param name="use.id.as.filename">1</xsl:param> |
| 100 |
<xsl:param name="chunk.first.sections">1</xsl:param> |
| 101 |
@@ -45,13 +45,11 @@ |
| 102 |
<xsl:apply-imports/> |
| 103 |
</xsl:param> |
| 104 |
|
| 105 |
- {extends file="main.tpl"} |
| 106 |
<xsl:call-template name="html.head"> |
| 107 |
<xsl:with-param name="prev" select="$prev"/> |
| 108 |
<xsl:with-param name="next" select="$next"/> |
| 109 |
</xsl:call-template> |
| 110 |
<xsl:call-template name="body.attributes"/> |
| 111 |
- {block name=body}{literal} |
| 112 |
<xsl:call-template name="user.header.navigation"/> |
| 113 |
|
| 114 |
<xsl:call-template name="header.navigation"> |
| 115 |
@@ -73,7 +71,6 @@ |
| 116 |
</xsl:call-template> |
| 117 |
|
| 118 |
<xsl:call-template name="user.footer.navigation"/> |
| 119 |
- {/literal}{/block} |
| 120 |
<xsl:value-of select="$chunk.append"/> |
| 121 |
</xsl:template> |
| 122 |
|
| 123 |
--- a/xmldoc/babelpdf.xsl |
| 124 |
+++ b/xmldoc/babelpdf.xsl |
| 125 |
@@ -6,7 +6,7 @@ |
| 126 |
exclude-result-prefixes="exsl"> |
| 127 |
|
| 128 |
|
| 129 |
-<xsl:import href="http://docbook.sourceforge.net/release/xsl-ns/current/fo/docbook.xsl"/> |
| 130 |
+<xsl:import href="file:///usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl"/> |
| 131 |
|
| 132 |
<!-- turn on extensions for newer versions of fop. In particular, this makes |
| 133 |
the XSL generate an fo bookmark-tree, which fop translates into bookmarks |
| 134 |
--- a/xmldoc/gpsbabel_man.xml |
| 135 |
+++ b/xmldoc/gpsbabel_man.xml |
| 136 |
@@ -1,6 +1,6 @@ |
| 137 |
<!DOCTYPE refentry |
| 138 |
PUBLIC '-//OASIS//DTD DocBook XML V4.5//EN' |
| 139 |
- 'http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd'> |
| 140 |
+ 'file:///usr/share/xml/docbook/schema/dtd/4.5/docbookx.dtd'> |
| 141 |
<refentry id="gpsbabel"> |
| 142 |
<refentryinfo> |
| 143 |
<author> |
| 144 |
@@ -127,7 +127,7 @@ or as the backend for other tools. </para> |
| 145 |
</listitem> |
| 146 |
</varlistentry> |
| 147 |
</variablelist> |
| 148 |
- <para>Lists of filters and formats are given in the doc at https://www.gpsbabel.org. </para> |
| 149 |
+ <para>Lists of filters and formats are given in the doc at /usr/share/doc/gpsbabel/. </para> |
| 150 |
</refsect1> |
| 151 |
<refsect1> |
| 152 |
<title>See Also</title> |