Forced commit to note that the review and the suggestion
[dragonfly.git] / contrib / groff / test-groff
blobcceecee5806074b6b8669c71ad108f0573d85c92
1 #! /bin/sh
2 # This script runs groff without requiring that it be installed.
3 # The current directory must be the top build directory.
5 builddir=./src
6 srcdir=`echo $0 | sed -e 's;/[^/]*$;;'`
8 if test ! -d $builddir/roff/groff || \
9 test ! -r $builddir/roff/groff/groff; then
10 echo $0 must be run with the top build directory as the current directory 2>&1
11 exit 1
14 GROFF_BIN_PATH=\
15 $builddir/roff/groff:\
16 $builddir/roff/troff:\
17 $builddir/preproc/pic:\
18 $builddir/preproc/eqn:\
19 $builddir/preproc/tbl:\
20 $builddir/preproc/grn:\
21 $builddir/preproc/refer:\
22 $builddir/preproc/soelim:\
23 $builddir/preproc/html:\
24 $builddir/devices/grops:\
25 $builddir/devices/grodvi:\
26 $builddir/devices/grotty:\
27 $builddir/devices/grolj4:\
28 $builddir/devices/grolbp:\
29 $builddir/devices/grohtml:\
30 $srcdir/$builddir/xditview
32 test -n "$srcdir" || srcdir=.
34 XENVIRONMENT=`cd $srcdir; pwd`/src/xditview/GXditview.ad
35 export XENVIRONMENT
37 GROFF_COMMAND_PREFIX=
38 GROFF_FONT_PATH=$builddir/../font:$srcdir/font
39 GROFF_TMAC_PATH=$srcdir/tmac
40 export GROFF_BIN_PATH GROFF_COMMAND_PREFIX GROFF_FONT_PATH GROFF_TMAC_PATH
42 exec $builddir/roff/groff/groff ${1+"$@"}