mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Make the cropping work and then turn it off by default.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4547 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0cf115854c
commit
83d049ff0c
@ -116,8 +116,8 @@ rm -f ${SEDSCRIPT}
|
|||||||
EXECUTABLE="extracting metrics"; CHECK_STATUS
|
EXECUTABLE="extracting metrics"; CHECK_STATUS
|
||||||
|
|
||||||
# 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 don't want this set REMOVE_WS=0.
|
# sides. If you want this set REMOVE_WS=1.
|
||||||
REMOVE_WS=1
|
REMOVE_WS=0
|
||||||
|
|
||||||
which pnmcrop > /dev/null
|
which pnmcrop > /dev/null
|
||||||
STATUS=$?
|
STATUS=$?
|
||||||
@ -126,17 +126,16 @@ if [ ${STATUS} -ne 0 ]; then
|
|||||||
REMOVE_WS=0
|
REMOVE_WS=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ REMOVE_WS -eq 1 ]; then
|
if [ ${REMOVE_WS} -eq 1 ]; then
|
||||||
TMP=.${BASE}.ppm
|
TMP=.${BASE}.ppm
|
||||||
for FILE=`ls ${BASE}???.ppm`
|
for FILE in `ls ${BASE}???.ppm`
|
||||||
do
|
do
|
||||||
pnmcrop -left -right ${FILE} > ${TMP}
|
pnmcrop -left ${FILE} | pnmcrop -right > ${TMP}
|
||||||
STATUS=$?
|
STATUS=$?
|
||||||
if [ ${STATUS} -eq 0 ]; then
|
if [ ${STATUS} -eq 0 ]; then
|
||||||
mv -f ${TMP} ${FILE}
|
mv -f ${TMP} ${FILE}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
rm -f ${TMP}
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# All was successful, so remove everything except the ppm files and the
|
# All was successful, so remove everything except the ppm files and the
|
||||||
|
Loading…
Reference in New Issue
Block a user