]> git.lyx.org Git - lyx.git/blobdiff - 3rdparty/dtl/man2ps
inputenc only expects one option
[lyx.git] / 3rdparty / dtl / man2ps
index 47eeb6e39009a2aa92e03e95b5d4879277fc7ad2..97684294a2226b512f8c48934e75a338c0ff5243 100644 (file)
@@ -25,16 +25,16 @@ case `basename $0` in
 esac
 
 # We can use either GNU groff or Sun Solaris troff + dpost
-if [ -x /usr/local/bin/groff ]
+if [ which groff > /dev/null ]
 then   # GNU groff
        TROFF="groff $FORMAT"
        TROFF2PS="cat"
-elif [ -x /usr/lib/lp/postscript/dpost ]
++elif [ which dpost > /dev/null ]
 then   # Solaris 2.1
        TROFF="troff $FORMAT"
        TROFF2PS="/usr/lib/lp/postscript/dpost"
 else
-       echo "Cannot find troff-to-PostScript filter"
++      echo "Cannot find troff-to-PostScript filter" >&2
        exit 1
 fi