bf24c607a874971cd8b1094654c5759c1680a49d
[platform/upstream/groff.git] / test-groff.in
1 #! /bin/sh
2 #
3 # Copyright (C) 1989-2014 Free Software Foundation, Inc.
4
5 # This file is part of groff.
6
7 # groff is free software; you can redistribute it and/or modify it under
8 # the terms of the GNU General Public License as published by the Free
9 # Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
11
12 # groff is distributed in the hope that it will be useful, but WITHOUT ANY
13 # WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15 # for more details.
16
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #
20 # This script runs groff without requiring that it be installed.
21
22 SEP='@PATH_SEPARATOR@'
23 builddir=@abs_top_builddir@/src
24 srcdir=@abs_top_srcdir@
25
26 GROFF_BIN_PATH=\
27 $builddir/roff/groff$SEP\
28 $builddir/roff/troff$SEP\
29 $builddir/preproc/preconv$SEP\
30 $builddir/preproc/pic$SEP\
31 $builddir/preproc/eqn$SEP\
32 $builddir/preproc/tbl$SEP\
33 $builddir/preproc/grn$SEP\
34 $builddir/preproc/refer$SEP\
35 $builddir/preproc/soelim$SEP\
36 $builddir/preproc/html$SEP\
37 $builddir/devices/grops$SEP\
38 $builddir/devices/grodvi$SEP\
39 $builddir/devices/grotty$SEP\
40 $builddir/devices/grolj4$SEP\
41 $builddir/devices/grolbp$SEP\
42 $builddir/devices/grohtml$SEP\
43 $builddir/devices/gropdf$SEP\
44 $builddir/devices/xditview
45
46 XENVIRONMENT=$srcdir/src/devices/xditview/GXditview.ad
47 export XENVIRONMENT
48
49 GROFF_COMMAND_PREFIX=
50 GROFF_FONT_PATH=$builddir/../font$SEP$srcdir/font
51 GROFF_TMAC_PATH=$srcdir/tmac
52 export GROFF_BIN_PATH GROFF_COMMAND_PREFIX GROFF_FONT_PATH GROFF_TMAC_PATH
53
54 exec $builddir/roff/groff/groff ${1+"$@"}