Imported Upstream version 1.22.4
[platform/upstream/groff.git] / test-groff.in
1 #! /bin/sh
2 #
3 # Copyright (C) 1989-2018 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@
24 srcdir=@abs_top_srcdir@
25
26 GROFF_BIN_PATH=$builddir
27
28 XENVIRONMENT=$srcdir/src/devices/xditview/GXditview.ad
29 export XENVIRONMENT
30
31 GROFF_COMMAND_PREFIX=
32 GROFF_FONT_PATH=$builddir/font\
33 $SEP$srcdir/font\
34
35 GROFF_TMAC_PATH=$srcdir/tmac\
36 $SEP$builddir/tmac\
37 $SEP$srcdir/contrib/mom\
38 $SEP$builddir/contrib/mom\
39 $SEP$srcdir/contrib/hdtbl\
40 $SEP$builddir/contrib/hdtbl\
41 $SEP$srcdir/contrib/mm\
42 $SEP$builddir/contrib/mm\
43 $SEP$srcdir/contrib/mm/locale\
44 $SEP$builddir/contrib/mm/locale\
45 $SEP$srcdir/contrib/pdfmark\
46 $SEP$builddir/contrib/pdfmark\
47
48 export GROFF_BIN_PATH GROFF_COMMAND_PREFIX GROFF_FONT_PATH GROFF_TMAC_PATH
49
50 exec $builddir/groff -b -ww ${1+"$@"}