Fix Samba documentation build for manpages
authorAlexander Bokovoy <ab@samba.org>
Wed, 6 Jun 2007 13:43:17 +0000 (13:43 +0000)
committerGerald W. Carter <jerry@samba.org>
Wed, 23 Apr 2008 13:47:33 +0000 (08:47 -0500)
(This used to be commit 075e0065f39480a2046bf65ffedcdbf36889d4c5)

docs/Makefile
docs/Samba3-Developers-Guide/index.xml
docs/manpages-3/smb.conf.5.xml
docs/templates/attributions.xml [new file with mode: 0644]
docs/xslt/man.xsl

index 33c6425d1be9ec35b5bb1c420e58719a918f1910..68fdaadfd1fdbf6c8eae94d3de0ff51e7a398979 100644 (file)
@@ -53,6 +53,18 @@ $(DOCBOOKDIR)/Samba4-HOWTO.xml: $(filter-out Samba4-HOWTO/index.xml,$(wildcard S
 all: $(TARGETS)
 everything: manpages3 pdf html-single html htmlman3 txt ps fo htmlhelp pearson 
 release: manpages3 htmlman3 html pdf 
+clean:
+       @echo "Cleaning up..." 
+       rm -rf $(OUTPUTDIR)/* $(DOCBOOKDIR)
+       rm -f $(patsubst %.dia,%.png,$(foreach DOC,$(MAIN_DOCS),$($(DOC)-images-latex-dia))) \
+                       $(patsubst %.dia,%.pdf,$(foreach DOC,$(MAIN_DOCS),$($(DOC)-images-latex-dia))) \
+                       $(patsubst %.dia,%.eps,$(foreach DOC,$(MAIN_DOCS),$($(DOC)-images-latex-dia)))
+       rm -f *.xml *.d *.tpt *.tex *.loc *.toc *.lof *.glo *.idx *.aux
+       rm -f *-images-html*
+       rm -f *-images-latex-* latexfigures
+       rm -f xslt/figures/*pdf
+       rm -f $(SMBDOTCONFDOC)/parameters.*.xml
+       rm -f $(addsuffix .*,$(MAIN_DOCS))
 
 # Output format targets
 pdf: $(patsubst %,$(PDFDIR)/%.pdf,$(MAIN_DOCS))
@@ -115,6 +127,7 @@ $(HTMLDIR)/%.html: $(DOCBOOKDIR)/%.xml $(HTMLDIR)/samba.css xslt/html.xsl
 # Attributions
 %-attributions.xml: 
        @echo "Generating attributions file $@ from $*/"
+       @cp -f templates/attributions.xml $@
        $(XSLTPROC) --xinclude -o $@ xslt/generate-attributions.xsl $*/index.xml 
 
 # Text files
@@ -302,18 +315,6 @@ xslt/pearson.xsl:
 distclean clobber: clean
        rm Makefile.settings config.status config.log configure
 
-clean: 
-       @echo "Cleaning up..." 
-       rm -rf $(OUTPUTDIR)/* $(DOCBOOKDIR)
-       rm -f $(patsubst %.dia,%.png,$(foreach DOC,$(MAIN_DOCS),$($(DOC)-images-latex-dia))) \
-                       $(patsubst %.dia,%.pdf,$(foreach DOC,$(MAIN_DOCS),$($(DOC)-images-latex-dia))) \
-                       $(patsubst %.dia,%.eps,$(foreach DOC,$(MAIN_DOCS),$($(DOC)-images-latex-dia)))
-       rm -f *.xml *.d *.tpt *.tex *.loc *.toc *.lof *.glo *.idx *.aux
-       rm -f *-images-html*
-       rm -f *-images-latex-* latexfigures
-       rm -f xslt/figures/*pdf
-       rm -f $(SMBDOTCONFDOC)/parameters.*.xml
-       rm -f $(addsuffix .*,$(MAIN_DOCS))
 
 # Always keep intermediate files if we can
 .SECONDARY:
index 0e3eb10b3bab0b9669d297625efd5b23cb1d9b1a..74a70483866547eff7a3030a7bb776488e94a831 100644 (file)
@@ -44,7 +44,7 @@ url="http://www.fsf.org/licenses/gpl.txt">http://www.fsf.org/licenses/gpl.txt</u
 
 </bookinfo>
 
-<xi:include href="../Samba-Developers-Guide-attributions.xml">
+<xi:include href="../Samba3-Developers-Guide-attributions.xml">
        <xi:fallback/>
 </xi:include>
 
index 13743debf14576118e209a74ede3adcf36c2e69e..52780a04bef8ac4808bbc4674432fd5ff0396970 100644 (file)
@@ -55,7 +55,7 @@
        </para>
 
        <para>
-       Any line ending in a <quote>\</quote> is continued on the next line in the customary UNIX fashion.
+       Any line ending in a <quote>\\</quote> is continued on the next line in the customary UNIX fashion.
        </para>
 
        <para>
diff --git a/docs/templates/attributions.xml b/docs/templates/attributions.xml
new file mode 100644 (file)
index 0000000..281a9e5
--- /dev/null
@@ -0,0 +1,5 @@
+<?xml version="1.0"?>
+<!DOCTYPE preface PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
+<preface>
+</preface>
+
index 9387c04e432fcac18df66c4434c7aebc2d27d23f..38d99f9840326c18cc9412c4864e966d14edde00 100644 (file)
   <xsl:text>\fR</xsl:text>
 </xsl:template>
 
+<xsl:template match="//quote">
+  <xsl:text>\fB</xsl:text>
+  <xsl:apply-templates/>
+  <xsl:text>\fR</xsl:text>
+</xsl:template>
+
 <xsl:template match="para|simpara|remark" mode="list">
   <xsl:variable name="foo">
     <xsl:apply-templates/>