diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2009-11-24 18:22:00 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2009-11-24 18:22:00 +0000 |
commit | 6708e6ace1dcc58065332e83219d043be1151c48 (patch) | |
tree | 2d6cf9e89acfadc7d84978beb5604b6c4fddcf64 /pdf-fixups.sh | |
parent | 7413fd73a373903abebf764d06267190fe943bc0 (diff) |
Fix pdf overflow of grub listing output by changing the font size
in the appropriate block of the lfs-pdf.fo file.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9118 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'pdf-fixups.sh')
-rwxr-xr-x | pdf-fixups.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pdf-fixups.sh b/pdf-fixups.sh new file mode 100755 index 000000000..4d319457c --- /dev/null +++ b/pdf-fixups.sh @@ -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 + |