dependencies: Bison building system needs diffutils
[lfs.git] / pdf-fixups.sh
blobd39d3f10f8f5f76009052ed41fb1c050f66bc9a8
1 #!/bin/bash
3 if [ $# -lt 1 ] ; then
4 echo "This script needs the location of the fo file to update"
5 exit 1
6 fi
9 FILE=$1
11 LINE=$( grep -n "DO NOT EDIT" $FILE | cut -f1 -d: )
12 LINE=$(( LINE - 1 ))
14 # Not needed
15 #sed -i -e "$LINE s/monospace/&\" font-size=\"9pt/" $FILE
16 sed -i -e "s/monospace/&\" font-size=\"9pt/g" $FILE
18 # Break a block of code at the right place
19 sed -i -e 's@gcc --version@<fo:block page-break-before="always"></fo:block>&@' $FILE