Author: bdubbs
Date: 2009-11-24 11:22:00 -0700 (Tue, 24 Nov 2009)
New Revision: 9118

Added:
   trunk/BOOK/pdf-fixups.sh
Modified:
   trunk/BOOK/Makefile
Log:
Fix pdf overflow of grub listing output by changing the font size
in the appropriate block of the lfs-pdf.fo file.


Modified: trunk/BOOK/Makefile
===================================================================
--- trunk/BOOK/Makefile 2009-11-23 16:41:04 UTC (rev 9117)
+++ trunk/BOOK/Makefile 2009-11-24 18:22:00 UTC (rev 9118)
@@ -51,6 +51,7 @@
          --output $(RENDERTMP)/lfs-pdf.fo stylesheets/lfs-pdf.xsl \
          $(RENDERTMP)/lfs-pdf.xml
        $(Q)sed -i -e 's/span="inherit"/span="all"/' $(RENDERTMP)/lfs-pdf.fo
+       $(Q)bash pdf-fixups.sh $(RENDERTMP)/lfs-pdf.fo
 
        @echo "Generating PDF file..."
        $(Q)if [ ! -e $(BASEDIR) ]; then \

Added: trunk/BOOK/pdf-fixups.sh
===================================================================
--- trunk/BOOK/pdf-fixups.sh                            (rev 0)
+++ trunk/BOOK/pdf-fixups.sh    2009-11-24 18:22:00 UTC (rev 9118)
@@ -0,0 +1,15 @@
+#!/bin/bash --verbose
+
+if [ $# -lt 1 ] ; then 
+  echo "This script needs the location of the fo file to update"
+  exit 1
+fi
+
+
+FILE=$1
+
+LINE=$( grep -n "DO NOT EDIT" $FILE | cut -f1 -d: )
+LINE=$(( LINE - 1 ))
+
+sed -i -e "$LINE s/monospace/&\" font-size=\"9pt/" $FILE
+


Property changes on: trunk/BOOK/pdf-fixups.sh
___________________________________________________________________
Name: svn:executable
   + *

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to