mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
Use html2text for generating text output instead of xmlto, which uses a combination of xsltproc and lynx
This commit is contained in:
parent
b80770477c
commit
dc303a8c08
@ -19,7 +19,7 @@ PNGTOPNM = @PNGTOPNM@
|
||||
EPSTOPNM = @EPSTOPNM@
|
||||
PNMTOPNG = @PNMTOPNG@
|
||||
PNMTOPS = @PNMTOPS@
|
||||
XMLTO = @XMLTO@
|
||||
HTML2TEXT = @HTML2TEXT@
|
||||
PLUCKERBUILD = @PLUCKERBUILD@
|
||||
PDFLATEX = TEXINPUTS=xslt/latex:.: @PDFLATEX@
|
||||
LATEX = TEXINPUTS=xslt/latex:.: @LATEX@
|
||||
@ -161,8 +161,8 @@ clean:
|
||||
$(TXTDIR):
|
||||
mkdir $(TXTDIR)
|
||||
|
||||
$(TXTDIR)/%.txt: %.xml
|
||||
$(XMLTO) txt -o $(TXTDIR) $< > $@
|
||||
$(TXTDIR)/%.txt: $(HTMLDIR)/%.html
|
||||
$(HTML2TEXT) -nobs -style pretty -o $@ $<
|
||||
|
||||
# Tex files
|
||||
%.tex: %.xml
|
||||
|
@ -40,7 +40,7 @@ DOCS_TARGET_REQUIRE_PROGRAM(PNMTOPS, pnmtops, PS)
|
||||
DOCS_TARGET_REQUIRE_PROGRAM(LATEX, latex, PS)
|
||||
DOCS_TARGET_REQUIRE_PROGRAM(DVIPS, dvips, PS)
|
||||
DOCS_TARGET_REQUIRE_PROGRAM(PLUCKERBUILD, plucker-build, PLUCKER)
|
||||
DOCS_TARGET_REQUIRE_PROGRAM(XMLTO, xmlto, TXT)
|
||||
DOCS_TARGET_REQUIRE_PROGRAM(HTML2TEXT, html2text, TXT)
|
||||
DOCS_TARGET_REQUIRE_PROGRAM(PERL, perl, UNDOCUMENTED)
|
||||
|
||||
AC_MSG_RESULT([])
|
||||
@ -56,7 +56,7 @@ DOCS_DEFINE_TARGET(HTML, ALL, [HTML versions], [html])
|
||||
DOCS_DEFINE_TARGET(MANPAGES, ALL, [manpages], [manpages])
|
||||
DOCS_DEFINE_TARGET(PLUCKER, HTML, [plucker versions], [plucker])
|
||||
DOCS_DEFINE_TARGET(UNDOCUMENTED, MANPAGES, [list of undocumented options], [undocumented])
|
||||
DOCS_DEFINE_TARGET(TXT, ALL, [text versions], [txt])
|
||||
DOCS_DEFINE_TARGET(TXT, HTML, [text versions], [txt])
|
||||
|
||||
if test x"$TARGETS" = x; then
|
||||
AC_MSG_ERROR([You won't be able to build any of the docs])
|
||||
|
@ -87,7 +87,6 @@
|
||||
|
||||
<!-- This is needed to copy content unchanged -->
|
||||
<xsl:template match="@*|node()">
|
||||
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="@*|node()"/>
|
||||
</xsl:copy>
|
||||
|
Loading…
Reference in New Issue
Block a user