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