Fix the RTF build:
Jade is not able to embed images but links them instead, so images have to be installed with the .rtf document (it's similar to the HTML case). I added a new format: rtf.tar which is a better solution than using rtf since the images are not embedded. make FORMATS=rtf.tar is your friend :)
This commit is contained in:
parent
4e43c19774
commit
b15b7b88e6
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=21946
1 changed files with 22 additions and 2 deletions
|
@ -190,7 +190,7 @@ JADEOPTS= ${JADEFLAGS} ${SGMLFLAGS} ${CATALOGS}
|
|||
XSLTPROCOPTS= ${XSLTPROCFLAGS}
|
||||
|
||||
KNOWN_FORMATS= html html.tar html-split html-split.tar \
|
||||
txt rtf ps pdf tex dvi tar pdb
|
||||
txt rtf rtf.tar ps pdf tex dvi tar pdb
|
||||
|
||||
CSS_SHEET?= ${DOC_PREFIX}/share/misc/docbook.css
|
||||
PDFTEX_DEF?= ${DOC_PREFIX}/share/web2c/pdftex.def
|
||||
|
@ -557,9 +557,16 @@ ${.CURDIR:T}.pdb.${_curcomp}: ${DOC}.pdb.${_curcomp}
|
|||
# RTF --------------------------------------------------------------------
|
||||
|
||||
${DOC}.rtf: ${SRCS} ${LOCAL_IMAGES_EPS} ${LOCAL_IMAGES_TXT}
|
||||
${JADE_CMD} -V rtf-backend ${PRINTOPTS} \
|
||||
${JADE_CMD} -V rtf-backend ${PRINTOPTS} -ioutput.rtf.images \
|
||||
${JADEOPTS} -t rtf -o ${.TARGET} ${MASTERDOC}
|
||||
|
||||
${DOC}.rtf.tar: ${DOC}.rtf ${LOCAL_IMAGES_PNG}
|
||||
${TAR} cf ${.TARGET} ${DOC}.rtf ${IMAGES_PNG:N*share*}
|
||||
.for _curimage in ${IMAGES_PNG:M*share*}
|
||||
${TAR} rf ${.TARGET} -C ${IMAGES_EN_DIR}/${DOC}s/${.CURDIR:T} \
|
||||
${_curimage:S|${IMAGES_EN_DIR}/${DOC}s/${.CURDIR:T}/||}
|
||||
.endfor
|
||||
|
||||
#
|
||||
# This sucks, but there's no way round it. The PS and PDF formats need
|
||||
# to use different image formats, which are chosen at the .tex stage. So,
|
||||
|
@ -857,6 +864,19 @@ install-${_curformat}: ${DOC}.${_curformat}
|
|||
.endfor
|
||||
.elif ${_cf} == "pdb"
|
||||
${LN} -f ${DESTDIR}/${.ALLSRC} ${DESTDIR}/${.CURDIR:T}.${_curformat}
|
||||
|
||||
.elif ${_cf} == "rtf"
|
||||
.for _curimage in ${IMAGES_PNG:M*/*:M*share*}
|
||||
${MKDIR} -p ${DESTDIR:H:H}/${_curimage:H:S|${IMAGES_EN_DIR}/||:S|${.CURDIR}||}
|
||||
${INSTALL_DOCS} ${_curimage} ${DESTDIR:H:H}/${_curimage:H:S|${IMAGES_EN_DIR}/||:S|${.CURDIR}||}
|
||||
.endfor
|
||||
.for _curimage in ${IMAGES_PNG:M*/*:N*share*}
|
||||
${MKDIR} -p ${DESTDIR}/${_curimage:H}
|
||||
${INSTALL_DOCS} ${_curimage} ${DESTDIR}/${_curimage:H}
|
||||
.endfor
|
||||
.for _curimage in ${IMAGES_PNG:N*/*}
|
||||
${INSTALL_DOCS} ${_curimage} ${DESTDIR}/${_curimage}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.if ${_cf} == "html-split"
|
||||
|
|
Loading…
Reference in a new issue