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