* src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
[s-roff.git] / test-groff.in
blobfc44d252abd83e3c0bf81adb580deec04985b6ba
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 SEP='@PATH_SEPARATOR@'
6 EXEEXT=@EXEEXT@
7 builddir=./src
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
13 exit 1
16 GROFF_BIN_PATH=\
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 $srcdir/$builddir/xditview
34 test -n "$srcdir" || srcdir=.
36 XENVIRONMENT=`cd $srcdir; pwd`/src/xditview/GXditview.ad
37 export XENVIRONMENT
39 GROFF_COMMAND_PREFIX=
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+"$@"}