PERFORCE change 81999 for review
Murray Stokely
murray at FreeBSD.org
Mon Aug 15 01:24:07 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=81999
Change 81999 by murray at murray_doc on 2005/08/15 01:23:51
Add Makefile support for .sxi format. Copy the template to
OBJDIR, write a new content.xml file, and then zip it up as
slides.sxi.
Affected files ...
.. //depot/projects/docbook_slides/share/mk/doc.slides.mk#2 edit
Differences ...
==== //depot/projects/docbook_slides/share/mk/doc.slides.mk#2 (text+ko) ====
@@ -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_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 @@
.endif
.endif
+.if ${_cf} == "sxi"
+CLEANDIRS+= sxi
+.endif
+
.endfor
XSLTPROCFLAGS?= --nonet --stringparam draft.mode no
@@ -63,6 +70,11 @@
${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/}
More information about the p4-projects
mailing list