* aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
[s-roff.git] / test-groff
blob4e06e9623e686ac06141bbcdc0b9604c13562176
1 #! /bin/sh
2 # This script runs groff without requiring that it be installed.
3 # The current directory must be the build directory.
5 builddir=./src
6 srcdir=`echo $0 | sed -e 's;/[^/]*$;;'`
8 if test ! -d $builddir/roff/groff || test ! -r $builddir/roff/groff/groff
9 then
10 echo $0 must be run with the build directory as the current directory 2>&1
11 exit 1
14 GROFF_BIN_PATH=\
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/preproc/html:\
23 $builddir/devices/grops:\
24 $builddir/devices/grodvi:\
25 $builddir/devices/grotty:\
26 $builddir/devices/grolj4:\
27 $builddir/devices/grolbp:\
28 $builddir/devices/grohtml:\
29 $srcdir/$builddir/xditview
31 test -n "$srcdir" || srcdir=.
33 XENVIRONMENT=`cd $srcdir; pwd`/src/xditview/GXditview.ad
34 export XENVIRONMENT
36 GROFF_COMMAND_PREFIX=
37 GROFF_FONT_PATH=$builddir:$srcdir/font
38 GROFF_TMAC_PATH=$srcdir/tmac
39 export GROFF_BIN_PATH GROFF_COMMAND_PREFIX GROFF_FONT_PATH GROFF_TMAC_PATH
41 exec $builddir/roff/groff/groff ${1+"$@"}