svn commit: r48776 - head/share/mk

Warren Block <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
Author: wblock
Date: Wed May  4 21:35:12 2016
New Revision: 48776
URL: https://svnweb.freebsd.org/changeset/doc/48776

Log:
  Generate the correct paths to images in epub documents.

Modified:
  head/share/mk/doc.docbook.mk

Modified: head/share/mk/doc.docbook.mk
==============================================================================
--- head/share/mk/doc.docbook.mk	Tue May  3 18:27:25 2016	(r48775)
+++ head/share/mk/doc.docbook.mk	Wed May  4 21:35:12 2016	(r48776)
@@ -371,9 +371,16 @@ ${DOC}.html.tar: ${DOC}.html ${LOCAL_IMA
 ${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
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.