mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-04 16:42:57 +00:00
Fix the fix so that it actually works ;-)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14366 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
563c1b6b24
commit
7c0e56ff5d
@ -20,15 +20,24 @@ case `basename $0` in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# We can use either GNU groff or Sun Solaris troff + dpost
|
# We can use either GNU groff or Sun Solaris troff + dpost
|
||||||
if [ which groff > /dev/null ]
|
TROFF=
|
||||||
then # GNU groff
|
which groff > /dev/null && {
|
||||||
|
# GNU groff
|
||||||
TROFF="groff $FORMAT"
|
TROFF="groff $FORMAT"
|
||||||
TROFF2PS="cat"
|
TROFF2PS="cat"
|
||||||
elif [ which dpost > /dev/null ]
|
}
|
||||||
then # Solaris 2.1
|
|
||||||
TROFF="troff $FORMAT"
|
if [ -z "$TROFF" ]
|
||||||
TROFF2PS="/usr/lib/lp/postscript/dpost"
|
then
|
||||||
else
|
which dpost > /dev/null && {
|
||||||
|
# Solaris 2.1
|
||||||
|
TROFF="troff $FORMAT"
|
||||||
|
TROFF2PS="/usr/lib/lp/postscript/dpost"
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$TROFF" ]
|
||||||
|
then
|
||||||
echo "Cannot find troff-to-PostScript filter" >&2
|
echo "Cannot find troff-to-PostScript filter" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user