else
USERGUIDE_MAKEFILE=
fi
+if test -f 'doc/xml/mobi-fixup.xsl.in' ; then
+ MOBI_FIXUP_XSL="doc/xml/mobi-fixup.xsl"
+else
+ MOBI_FIXUP_XSL=
+fi
AC_OUTPUT( \
Makefile \
${ADMINGUIDE_MAKEFILE} \
${QSUNIX_MAKEFILE} \
${USERGUIDE_MAKEFILE} \
+${MOBI_FIXUP_XSL} \
src/afs/Makefile \
src/afsd/Makefile \
src/afsmonitor/Makefile \
BOOK = auagd000
-all: $(BOOK).pdf index.html
+all: $(BOOK).pdf index.html $(BOOK).epub $(BOOK).mobi
include @TOP_OBJDIR@/src/config/Makefile.config
VERSION=version
DOCBOOK_STYLESHEETS = @DOCBOOK_STYLESHEETS@
XSLTPROC = @XSLTPROC@
DOCBOOK2PDF = @DOCBOOK2PDF@
+DBTOEPUB = $(DOCBOOK_STYLESHEETS)/epub/bin/dbtoepub
index.html: $(SRCS)
$(XSLTPROC) --param navig.graphics 1 \
$(DOCBOOK2PDF) $(BOOK).xml; \
fi
+$(BOOK).epub: $(SRCS)
+ if test -x "$(DBTOEPUB)" ; then \
+ $(DBTOEPUB) -s $(TOP_SRCDIR)/../doc/xml/mobi-fixup.xsl $(BOOK).xml; \
+ fi
+
+$(BOOK).mobi: $(BOOK).epub
+ kindlegen $(BOOK).epub -o $(BOOK).mobi
+
check:
xmllint --noout --valid $(BOOK).xml
<bookinfo>
<title>OpenAFS Administration Guide</title>
+ <mediaobject role="cover">
+ <imageobject>
+ <imagedata fileref="auagd000.png" />
+ </imageobject>
+ </mediaobject>
+
<copyright>
<year>2000</year>
BOOK = auqbg000
-all: $(BOOK).pdf index.html
+all: $(BOOK).pdf index.html $(BOOK).epub $(BOOK).mobi
include @TOP_OBJDIR@/src/config/Makefile.config
VERSION=version
DOCBOOK_STYLESHEETS = @DOCBOOK_STYLESHEETS@
XSLTPROC = @XSLTPROC@
DOCBOOK2PDF = @DOCBOOK2PDF@
+DBTOEPUB = $(DOCBOOK_STYLESHEETS)/epub/bin/dbtoepub
index.html: $(SRCS)
$(XSLTPROC) --param navig.graphics 1 \
$(DOCBOOK2PDF) $(BOOK).xml; \
fi
+$(BOOK).epub: $(SRCS)
+ if test -x "$(DBTOEPUB)" ; then \
+ $(DBTOEPUB) -s $(TOP_SRCDIR)/../doc/xml/mobi-fixup.xsl $(BOOK).xml; \
+ fi
+
+$(BOOK).mobi: $(BOOK).epub
+ kindlegen $(BOOK).epub -o $(BOOK).mobi
+
check:
xmllint --noout --valid $(BOOK).xml
<bookinfo>
<title>OpenAFS Quick Start Guide for UNIX</title>
+ <mediaobject role="cover">
+ <imageobject>
+ <imagedata fileref="auqbg000.png" />
+ </imageobject>
+ </mediaobject>
+
<copyright>
<year>2000-2009</year>
<holder>IBM Corporation and other contributors. All Rights Reserved</holder>
BOOK = auusg000
-all: $(BOOK).pdf index.html
+all: $(BOOK).pdf index.html $(BOOK).epub $(BOOK).mobi
include @TOP_OBJDIR@/src/config/Makefile.config
VERSION=version
$(DOCBOOK2PDF) $(BOOK).xml; \
fi
+$(BOOK).epub: $(SRCS)
+ if test -x "$(DBTOEPUB)" ; then \
+ $(DBTOEPUB) -s $(TOP_SRCDIR)/../doc/xml/mobi-fixup.xsl $(BOOK).xml; \
+ fi
+
+$(BOOK).mobi: $(BOOK).epub
+ kindlegen $(BOOK).epub -o $(BOOK).mobi
+
check:
xmllint --noout --valid $(BOOK).xml
<bookinfo>
<title>OpenAFS User Guide</title>
+ <mediaobject role="cover">
+ <imageobject>
+ <imagedata fileref="auusg000.png" />
+ </imageobject>
+ </mediaobject>
+
<copyright>
<year>2000</year>
--- /dev/null
+<?xml version="1.0"?>
+
+<!--
+ The kindle seems to render certain lists with an extra line break.
+ To work around this for now, we remove the first <para> for itemized
+ and ordered lists.
+-->
+
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:import href="@DOCBOOK_STYLESHEETS@/epub/docbook.xsl"/>
+
+ <xsl:template match="/">
+ <xsl:copy>
+ <xsl:apply-imports/>
+ </xsl:copy>
+ </xsl:template>
+
+
+ <xsl:template match="itemizedlist/listitem/para[position() = 1]">
+ <!-- still process any anchors embedded in the <listitem> -->
+ <xsl:call-template name="anchor">
+ <xsl:with-param name="node" select="parent::listitem"/>
+ </xsl:call-template>
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match="orderedlist/listitem/para[position() = 1]">
+ <!-- still process any anchors embedded in the <listitem> -->
+ <xsl:call-template name="anchor">
+ <xsl:with-param name="node" select="parent::listitem"/>
+ </xsl:call-template>
+ <xsl:apply-templates/>
+ </xsl:template>
+
+</xsl:stylesheet>