Kaynağa Gözat

Copy images referenced by the nochunks output somewhere that is visible by the HTML file

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@6344 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Matthew Burgess 20 yıl önce
ebeveyn
işleme
1e8bbd5a0b
1 değiştirilmiş dosya ile 8 ekleme ve 0 silme
  1. 8 0
      Makefile

+ 8 - 0
Makefile

@@ -61,6 +61,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