From 256dc1b99ff93497e68af3ad11085af0c594e212 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Tue, 30 Jul 2002 17:14:16 +0000 Subject: [PATCH] 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 --- lib/ChangeLog | 5 +++++ lib/scripts/lyxpreview2ppm.sh | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index ffbf65ac7d..eb94a6b6e4 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2002-07-30 Angus Leeming + + * scripts/lyxpreview2ppm.sh: rename bbox.sed so that multiple runs + don't get confused. + 2002-07-24 Adrien Rebollo * examples/fr_CV.lyx: new file diff --git a/lib/scripts/lyxpreview2ppm.sh b/lib/scripts/lyxpreview2ppm.sh index 9f75c1f0ca..2720b9bbb6 100644 --- a/lib/scripts/lyxpreview2ppm.sh +++ b/lib/scripts/lyxpreview2ppm.sh @@ -50,7 +50,7 @@ DIR=`dirname $1` BASE=`basename $1 .tex` DVIFILE=${BASE}.dvi PSFILE=${BASE}.ps -METRICS=${BASE}.metrics +METRICSFILE=${BASE}.metrics # LaTeX -> DVI. cd ${DIR} @@ -106,12 +106,12 @@ if [ ${STATUS} -ne 0 ]; then BAIL_OUT 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} # 1. Create a file containing the sed instructions -SEDSCRIPT=bbox.sed -cat - > ${SEDSCRIPT} < ${SEDFILE} < ${METRICS} -rm -f ${SEDSCRIPT} +sed -f ${SEDFILE} < ${PSFILE} > ${METRICSFILE} +rm -f ${SEDFILE} # The ppm files have spurious (?! say some !) white space on the left and right # sides. If you want this removed set REMOVE_WS=1. -- 2.39.2