Generate the correct paths to images in epub documents.
This commit is contained in:
parent
472566b1b6
commit
84c6577fe8
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=48776
1 changed files with 10 additions and 3 deletions
|
@ -371,9 +371,16 @@ ${DOC}.html.tar: ${DOC}.html ${LOCAL_IMAGES_LIB} \
|
|||
${DOC}.epub: ${DOC}.parsed.xml ${LOCAL_IMAGES_LIB} ${LOCAL_IMAGES_PNG} \
|
||||
${CSS_SHEET} ${XML_INCLUDES}
|
||||
${XSLTPROC} ${XSLTPROCOPTS} ${XSLEPUB} ${DOC}.parsed.xml
|
||||
.if defined(LOCAL_IMAGES_LIB) || defined(LOCAL_IMAGES_PNG)
|
||||
.for f in ${LOCAL_IMAGES_LIB} ${LOCAL_IMAGES_PNG}
|
||||
${CP} ${f} OEBPS/
|
||||
.if defined(LOCAL_IMAGES_LIB)
|
||||
.for f in ${LOCAL_IMAGES_LIB}
|
||||
[ -d "OEBPS/${f:H}" ] || ${MKDIR} -pv "OEBPS/${f:H}"
|
||||
${CP} ${f} OEBPS/${f}
|
||||
.endfor
|
||||
.endif
|
||||
.if defined(LOCAL_IMAGES_PNG)
|
||||
.for f in ${LOCAL_IMAGES_PNG}
|
||||
[ -d "OEBPS/${f:H:T}" ] || ${MKDIR} -pv "OEBPS/${f:H:T}"
|
||||
${CP} -v ${f} OEBPS/${f:H:T}/${f:T}
|
||||
.endfor
|
||||
.endif
|
||||
${ZIP} ${ZIPOPTS} -r -X ${DOC}.epub mimetype OEBPS META-INF
|
||||
|
|
Loading…
Reference in a new issue