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
/grolbp
:\
27 $builddir/devices
/grohtml
:\
28 $srcdir/$builddir/xditview
:\
31 test -n "$srcdir" || srcdir
=.
33 XENVIRONMENT
=`cd $srcdir; pwd`/src
/xditview
/GXditview.ad
37 GROFF_FONT_PATH
=$builddir:$srcdir/font
38 GROFF_TMAC_PATH
=$srcdir/tmac
:$srcdir/src
/roff
/troff
39 export PATH GROFF_COMMAND_PREFIX GROFF_FONT_PATH GROFF_TMAC_PATH
41 exec $builddir/roff
/groff
/groff ${1+"$@"}