Selaa lähdekoodia

build: try to build PDF (2nd try)

Xℹ Ruoyao 5 vuotta sitten
vanhempi
commit
868ef15755
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      zh_CN/fix.sh

+ 5 - 1
zh_CN/fix.sh

@@ -100,11 +100,15 @@ $p
 grep "Simplified Chinese" stylesheets/lfs-xsl/lfs-l10n.xml ||
 	patch -N -p1 -i ../patches/lfs-l10n.xml.patch
 
+# Opts in the xsl specifying fonts
 cp -v ../zh_CN-fonts.xsl stylesheets/lfs-xsl/pdf/
-
 grep zh_CN-fonts stylesheets/lfs-xsl/pdf.xsl ||
 	sed '/<\/xsl:stylesheet>/i <xsl:include href="pdf/zh_CN-fonts.xsl"/>' \
 	    -i stylesheets/lfs-xsl/pdf.xsl
 
+# Copy fonts to tmp dir, and let fop to use our custom config
 grep '\-c fop.xml' Makefile ||
 	sed 's|fop -q|& -c ../fop.xml|' -i Makefile
+
+grep 'RENDERTMP)/fonts' Makefile ||
+	sed '/fop -q/i \\tmkdir -pv $(RENDERTMP)/fonts; cp -v ../fonts/* $(RENDERTMP)/fonts' -i Makefile