mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Rename bbox.sed so that multiple runs don't get confused.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4808 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6c57f7353f
commit
256dc1b99f
@ -1,3 +1,8 @@
|
|||||||
|
2002-07-30 Angus Leeming <leeming@lyx.org>
|
||||||
|
|
||||||
|
* scripts/lyxpreview2ppm.sh: rename bbox.sed so that multiple runs
|
||||||
|
don't get confused.
|
||||||
|
|
||||||
2002-07-24 Adrien Rebollo <adrien.rebollo@gmx.fr>
|
2002-07-24 Adrien Rebollo <adrien.rebollo@gmx.fr>
|
||||||
|
|
||||||
* examples/fr_CV.lyx: new file
|
* examples/fr_CV.lyx: new file
|
||||||
|
@ -50,7 +50,7 @@ DIR=`dirname $1`
|
|||||||
BASE=`basename $1 .tex`
|
BASE=`basename $1 .tex`
|
||||||
DVIFILE=${BASE}.dvi
|
DVIFILE=${BASE}.dvi
|
||||||
PSFILE=${BASE}.ps
|
PSFILE=${BASE}.ps
|
||||||
METRICS=${BASE}.metrics
|
METRICSFILE=${BASE}.metrics
|
||||||
|
|
||||||
# LaTeX -> DVI.
|
# LaTeX -> DVI.
|
||||||
cd ${DIR}
|
cd ${DIR}
|
||||||
@ -106,12 +106,12 @@ if [ ${STATUS} -ne 0 ]; then
|
|||||||
BAIL_OUT
|
BAIL_OUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Attempt to generate a file ${METRICS} that contains only the tightpage
|
# Attempt to generate a file ${METRICSFILE} that contains only the tightpage
|
||||||
# bounding box info, extract from ${PSFILE}
|
# bounding box info, extract from ${PSFILE}
|
||||||
|
|
||||||
# 1. Create a file containing the sed instructions
|
# 1. Create a file containing the sed instructions
|
||||||
SEDSCRIPT=bbox.sed
|
SEDFILE=${BASE}.sed
|
||||||
cat - > ${SEDSCRIPT} <<EOF
|
cat - > ${SEDFILE} <<EOF
|
||||||
# Delete everything that's enclosed between %%BeginDocument and %%EndDocument
|
# Delete everything that's enclosed between %%BeginDocument and %%EndDocument
|
||||||
/^\%\%BeginDocument/,/^\%\%EndDocument/d
|
/^\%\%BeginDocument/,/^\%\%EndDocument/d
|
||||||
|
|
||||||
@ -134,8 +134,8 @@ d
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
# 2. Run sed!
|
# 2. Run sed!
|
||||||
sed -f ${SEDSCRIPT} < ${PSFILE} > ${METRICS}
|
sed -f ${SEDFILE} < ${PSFILE} > ${METRICSFILE}
|
||||||
rm -f ${SEDSCRIPT}
|
rm -f ${SEDFILE}
|
||||||
|
|
||||||
# The ppm files have spurious (?! say some !) white space on the left and right
|
# The ppm files have spurious (?! say some !) white space on the left and right
|
||||||
# sides. If you want this removed set REMOVE_WS=1.
|
# sides. If you want this removed set REMOVE_WS=1.
|
||||||
|
Loading…
Reference in New Issue
Block a user