source: pdf-fixups.sh@ 0ebda11

ml-11.0 multilib
Last change on this file since 0ebda11 was 040ecb6, checked in by Bruce Dubbs <bdubbs@…>, 9 years ago

Update to man-db-2.7.4.
Update to linux-4.2.3.
Update to tzdata2015g.
Many updates to installed files and directories. Huge thanks to Fernando.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10964 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100755
File size: 399 bytes
Line 
1#!/bin/bash
2
3if [ $# -lt 1 ] ; then
4 echo "This script needs the location of the fo file to update"
5 exit 1
6fi
7
8
9FILE=$1
10
11LINE=$( grep -n "DO NOT EDIT" $FILE | cut -f1 -d: )
12LINE=$(( LINE - 1 ))
13
14# Not needed
15#sed -i -e "$LINE s/monospace/&\" font-size=\"9pt/" $FILE
16
17# Break a block of code at the right place
18sed -i -e 's@gcc --version@<fo:block page-break-before="always"></fo:block>&@' $FILE
Note: See TracBrowser for help on using the repository browser.