Add 'sxi' as a known format for the DocBook Slides infrastructure in

/usr/doc/${LANG}/slides.
This commit is contained in:
Murray Stokely 2005-08-29 02:17:37 +00:00
parent 19a9120503
commit 7b589b1fa8
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=25496

View file

@ -26,7 +26,7 @@
DOCBOOKSUFFIX?= xml
MASTERDOC?= ${.CURDIR}/${DOC}.${DOCBOOKSUFFIX}
KNOWN_FORMATS= html pdf
KNOWN_FORMATS= html pdf sxi
CSS_SHEET?=
@ -34,6 +34,9 @@ SLIDES_XSLDIR= /usr/local/share/xsl/slides/xsl/
SLIDES_XSLHTML= ${SLIDES_XSLDIR}xhtml/default.xsl
SLIDES_XSLPRINT?= ${SLIDES_XSLDIR}fo/plain.xsl
# Default OpenOffice.Org Template
TEMPLATE?= BSDi
# Loop through formats we should build.
.for _curformat in ${FORMATS}
_cf=${_curformat}
@ -51,6 +54,10 @@ CLEANFILES+= ${DOC}.aux ${DOC}.log ${DOC}.out texput.log
.endif
.endif
.if ${_cf} == "sxi"
CLEANDIRS+= sxi
.endif
.endfor
XSLTPROCFLAGS?= --nonet --stringparam draft.mode no
@ -63,6 +70,11 @@ all: ${_docs}
${DOC}.html: ${SRCS}
${XSLTPROC} ${XSLTPROCOPTS} ${SLIDES_XSLHTML} ${DOC}.xml
${DOC}.sxi: ${SRCS}
cp -Rp ${DOC_PREFIX}/share/openoffice/${TEMPLATE} sxi
${XSLTPROC} ${XSLTPROCOPTS} ${DOC_PREFIX}/share/openoffice/${TEMPLATE}.xsl slides.xml > sxi/content.xml
(cd sxi; zip -r ../${DOC}.sxi .)
${DOC}.fo: ${SRCS}
.if defined(USE_SAXON)
${SAXON_CMD} ${DOC}.xml ${SLIDES_XSLPRINT} > ${.TARGET:S/.pdf$/.fo/}