From 29f5bc3994b02086387fc4fb0dbb94b4d8020d3c Mon Sep 17 00:00:00 2001 From: Matthew Burgess Date: Sat, 2 Jul 2005 20:42:09 +0000 Subject: [PATCH] Copy images referenced by the nochunks output somewhere that is visible by the HTML file (merged from r6344) git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/6.1/BOOK@6345 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index f971c4a42..789a5a738 100644 --- a/Makefile +++ b/Makefile @@ -53,6 +53,14 @@ nochunks: sed -i -e "s@text/html@application/xhtml+xml@g" \ $(BASEDIR)/$(NOCHUNKS_OUTPUT) + if [ ! -e $(BASEDIR)/images ]; then \ + mkdir -p $(BASEDIR)/images; \ + fi; + cp $(XSLROOTDIR)/images/*.png \ + $(BASEDIR)/images + cd $(BASEDIR)/; sed -i -e "s@../images@images@g" \ + *.html + validate: xmllint --noout --nonet --xinclude --postvalid index.xml