2 # This script runs groff without requiring that it be installed.
3 # The current directory must be the top build directory.
8 srcdir
=`echo $0 | sed -e 's;/[^/]*$;;'`
10 if test ! -d $builddir/roff
/groff || \
11 test ! -r $builddir/roff
/groff
/groff$EXEEXT; then
12 echo $0 must be run with the top build directory as the current directory
2>&1
17 $builddir/roff
/groff$SEP\
18 $builddir/roff
/troff
$SEP\
19 $builddir/preproc
/pic
$SEP\
20 $builddir/preproc
/eqn
$SEP\
21 $builddir/preproc
/tbl
$SEP\
22 $builddir/preproc
/grn
$SEP\
23 $builddir/preproc
/refer
$SEP\
24 $builddir/preproc
/soelim
$SEP\
25 $builddir/preproc
/html
$SEP\
26 $builddir/devices
/grops
$SEP\
27 $builddir/devices
/grodvi
$SEP\
28 $builddir/devices
/grotty
$SEP\
29 $builddir/devices
/grolj4
$SEP\
30 $builddir/devices
/grolbp
$SEP\
31 $builddir/devices
/grohtml
$SEP\
32 $builddir/devices
/xditview
34 test -n "$srcdir" || srcdir
=.
36 XENVIRONMENT
=`cd $srcdir; pwd`/src
/devices
/xditview
/GXditview.ad
40 GROFF_FONT_PATH
=$builddir/..
/font
$SEP$srcdir/font
41 GROFF_TMAC_PATH
=$srcdir/tmac
42 export GROFF_BIN_PATH GROFF_COMMAND_PREFIX GROFF_FONT_PATH GROFF_TMAC_PATH
44 exec $builddir/roff
/groff
/groff ${1+"$@"}