mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +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
|
||||
|
||||
# We can use either GNU groff or Sun Solaris troff + dpost
|
||||
if [ which groff > /dev/null ]
|
||||
then # GNU groff
|
||||
TROFF=
|
||||
which groff > /dev/null && {
|
||||
# GNU groff
|
||||
TROFF="groff $FORMAT"
|
||||
TROFF2PS="cat"
|
||||
elif [ which dpost > /dev/null ]
|
||||
then # Solaris 2.1
|
||||
TROFF="troff $FORMAT"
|
||||
TROFF2PS="/usr/lib/lp/postscript/dpost"
|
||||
else
|
||||
}
|
||||
|
||||
if [ -z "$TROFF" ]
|
||||
then
|
||||
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
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user