From 0e3d8b5e9ae338cc8bd41bcae8205bb7f6ed830b Mon Sep 17 00:00:00 2001 From: Debian GPS team Date: Tue, 25 Jan 2022 22:19:17 +0000 Subject: [PATCH] htmldoc-location Gbp-Pq: Name htmldoc-location --- gbversion.h.qmake.in | 2 +- testo.d/serialization.test | 4 ++-- tools/make_gpsbabel_org.sh | 7 ++----- xmldoc/babelmain.xsl | 3 --- xmldoc/gpsbabel_man.xml | 2 +- 5 files changed, 6 insertions(+), 12 deletions(-) diff --git a/gbversion.h.qmake.in b/gbversion.h.qmake.in index 1b50b95..71e9208 100644 --- a/gbversion.h.qmake.in +++ b/gbversion.h.qmake.in @@ -14,5 +14,5 @@ #else #define VERSION \"$${GB.MAJOR}.$${GB.MINOR}.$${GB.MICRO}$${GB.PACKAGE_RELEASE}\" constexpr char kVersionSHA[] = \"$${GB.SHA}\"; -#define WEB_DOC_DIR \"https://www.gpsbabel.org/htmldoc-$${DOCVERSION}\" +#define WEB_DOC_DIR \"file:///usr/share/doc/gpsbabel/html\" #endif diff --git a/testo.d/serialization.test b/testo.d/serialization.test index 3eadff6..f09f1e4 100644 --- a/testo.d/serialization.test +++ b/testo.d/serialization.test @@ -7,7 +7,7 @@ # the GUI and the document. # We do a compare_nole as specific whitespace is part of deserialization. gpsbabel -^3 > ${TMPDIR}/format3.txt -sed 's,https://www.gpsbabel.org/htmldoc-.[^/]*/,https://www.gpsbabel.org/WEB_DOC_DIR/,' ${TMPDIR}/format3.txt >${TMPDIR}/format3.fiddled.txt +sed 's,file:///usr/share/doc/gpsbabel/html/,https://www.gpsbabel.org/WEB_DOC_DIR/,' ${TMPDIR}/format3.txt >${TMPDIR}/format3.fiddled.txt compare_nole ${REFERENCE}/format3.txt ${TMPDIR}/format3.fiddled.txt gpsbabel -^2 > ${TMPDIR}/format2.txt compare_nole ${REFERENCE}/format2.txt ${TMPDIR}/format2.txt @@ -16,7 +16,7 @@ compare_nole ${REFERENCE}/format1.txt ${TMPDIR}/format1.txt gpsbabel -^0 > ${TMPDIR}/format0.txt compare_nole ${REFERENCE}/format0.txt ${TMPDIR}/format0.txt gpsbabel -%1 > ${TMPDIR}/filter1.txt -sed 's,https://www.gpsbabel.org/htmldoc-.[^/]*/,https://www.gpsbabel.org/WEB_DOC_DIR/,' ${TMPDIR}/filter1.txt >${TMPDIR}/filter1.fiddled.txt +sed 's,file:///usr/share/doc/gpsbabel/html/,https://www.gpsbabel.org/WEB_DOC_DIR/,' ${TMPDIR}/filter1.txt >${TMPDIR}/filter1.fiddled.txt compare_nole ${REFERENCE}/filter1.txt ${TMPDIR}/filter1.fiddled.txt gpsbabel -%0 > ${TMPDIR}/filter0.txt compare_nole ${REFERENCE}/filter0.txt ${TMPDIR}/filter0.txt diff --git a/tools/make_gpsbabel_org.sh b/tools/make_gpsbabel_org.sh index f19b45c..6066250 100755 --- a/tools/make_gpsbabel_org.sh +++ b/tools/make_gpsbabel_org.sh @@ -4,15 +4,12 @@ set -ex web=$1 docversion=$2 -mkdir -p "${web}/htmldoc-${docversion}" +mkdir -p "html" perl xmldoc/makedoc xmlwf xmldoc/readme.xml #check for well-formedness xmllint --noout --valid xmldoc/readme.xml #validate xsltproc \ - --stringparam base.dir "${web}/htmldoc-${docversion}/" \ + --stringparam base.dir "html" \ --stringparam root.filename "index" \ xmldoc/babelmain.xsl \ xmldoc/readme.xml -tools/fixdoc "${web}/htmldoc-${docversion}" "GPSBabel ${docversion}:" -tools/mkcapabilities "${web}" "${web}/htmldoc-${docversion}" -cp gpsbabel.pdf "${web}/htmldoc-${docversion}/gpsbabel-${docversion}.pdf" diff --git a/xmldoc/babelmain.xsl b/xmldoc/babelmain.xsl index cdac593..b0d192e 100644 --- a/xmldoc/babelmain.xsl +++ b/xmldoc/babelmain.xsl @@ -45,13 +45,11 @@ - {extends file="main.tpl"} - {block name=body}{literal} @@ -73,7 +71,6 @@ - {/literal}{/block} diff --git a/xmldoc/gpsbabel_man.xml b/xmldoc/gpsbabel_man.xml index ab169c7..bef432d 100644 --- a/xmldoc/gpsbabel_man.xml +++ b/xmldoc/gpsbabel_man.xml @@ -127,7 +127,7 @@ or as the backend for other tools. - Lists of filters and formats are given in the doc at https://www.gpsbabel.org. + Lists of filters and formats are given in the doc at /usr/share/doc/gpsbabel/. See Also -- 2.30.2