pdf-fixups.sh 400 B

123456789101112131415161718
  1. #!/bin/bash
  2. if [ $# -lt 1 ] ; then
  3. echo "This script needs the location of the fo file to update"
  4. exit 1
  5. fi
  6. FILE=$1
  7. LINE=$( grep -n "DO NOT EDIT" $FILE | cut -f1 -d: )
  8. LINE=$(( LINE - 1 ))
  9. # Not needed
  10. #sed -i -e "$LINE s/monospace/&\" font-size=\"9pt/" $FILE
  11. # Break a block of code at the right place
  12. #sed -i -e 's@gcc --version@<fo:block page-break-before="always"></fo:block>&@' $FILE