svn commit: r40828 - projects/xml-tools/share/mk

Hiroki Sato hrs at FreeBSD.org
Wed Jan 30 19:38:52 UTC 2013


Gabor Kovesdan <gabor at FreeBSD.org> wrote
  in <201301301636.r0UGaxfp005660 at svn.freebsd.org>:

ga> Author: gabor
ga> Date: Wed Jan 30 16:36:59 2013
ga> New Revision: 40828
ga> URL: http://svnweb.freebsd.org/changeset/doc/40828
ga>
ga> Log:
ga>   - Add support for epub generation
ga>
ga> Modified:
ga>   projects/xml-tools/share/mk/doc.docbook.mk
ga>
ga> Modified: projects/xml-tools/share/mk/doc.docbook.mk
ga> ==============================================================================
ga> --- projects/xml-tools/share/mk/doc.docbook.mk	Wed Jan 30 16:19:08 2013	(r40827)
ga> +++ projects/xml-tools/share/mk/doc.docbook.mk	Wed Jan 30 16:36:59 2013	(r40828)
ga> @@ -152,6 +152,7 @@ COLLATEINDEX=	${PREFIX}/share/sgml/docbo
ga>  XSLTPROCFLAGS?=	--nonet
ga>  XSLXHTML?=	${DOC_PREFIX}/share/xsl/freebsd-xhtml.xsl
ga>  XSLXHTMLCHUNK?=	${DOC_PREFIX}/share/xsl/freebsd-xhtml-chunk.xsl
ga> +XSLEPUB?=	${DOC_PREFIX}/share/xsl/freebsd-epub.xsl
ga>  XSLFO?=		${DOC_PREFIX}/share/xsl/freebsd-fo.xsl
ga>  INDEXREPORTSCRIPT= ${DOC_PREFIX}/share/misc/indexreport.pl
ga>
ga> @@ -349,6 +350,10 @@ CLEANFILES+= PLIST.${_curformat}
ga>  CLEANFILES+= $$([ -f HTML.manifest ] && ${XARGS} < HTML.manifest) \
ga>  		HTML.manifest ln*.html
ga>
ga> +.elif ${_cf} == "epub"
ga> +CLEANFILES+= ${DOC}.epub mimetype
ga> +CLEANDIRS+= META-INF OEBPS
ga> +
ga>  .elif ${_cf} == "html.tar"
ga>  CLEANFILES+= ${DOC}.html
ga>
ga> @@ -413,7 +418,7 @@ CLEANFILES+= ${LOCAL_CSS_SHEET}
ga>  _cf=${_curformat}
ga>  .for _curcomp in ${INSTALL_COMPRESSED}
ga>
ga> -.if ${_cf} != "html-split" && ${_cf} != "html"
ga> +.if ${_cf} != "html-split" && ${_cf} != "html" && ${_cf} != "epub"
ga>  _curinst+= install-${_curformat}.${_curcomp}
ga>  _docs+= ${DOC}.${_curformat}.${_curcomp}
ga>  CLEANFILES+= ${DOC}.${_curformat}.${_curcomp}
ga> @@ -503,6 +508,17 @@ ${DOC}.html.tar: ${DOC}.html ${LOCAL_IMA
ga>  	${TAR} rf ${.TARGET} -C ${IMAGES_EN_DIR}/${DOC}s/${.CURDIR:T} ${_curimage:S|${IMAGES_EN_DIR}/${DOC}s/${.CURDIR:T}/||}
ga>  .endfor
ga>
ga> +# EPUB -------------------------------------------------------------
ga> +
ga> +${DOC}.epub: ${DOC}.xml ${LOCAL_IMAGES_LIB} ${LOCAL_IMAGES_PNG} \
ga> +	${CSS_SHEET}
ga> +	${XSLTPROC} ${XSLTPROCOPTS} ${XSLEPUB} ${DOC}.xml
ga> +	${ECHO} "application/epub+zip" > mimetype
ga> +	${CP} ${CSS_SHEET} OEBPS/
ga> +	zip -0Xq  ${DOC}.epub mimetype
ga> +	zip -Xr9D ${DOC}.epub OEBPS META-INF

 I like to use bsdtar(1) to create a zip archive if possible.

-- Hiroki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-doc-projects/attachments/20130131/1b951496/attachment.sig>


More information about the svn-doc-projects mailing list