3 # Copyright (C) 1989-2018 Free Software Foundation, Inc.
5 # This file is part of groff.
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.
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
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/>.
20 # This script runs groff without requiring that it be installed.
22 SEP='@PATH_SEPARATOR@'
23 builddir=@abs_top_builddir@
24 srcdir=@abs_top_srcdir@
26 GROFF_BIN_PATH=$builddir
28 XENVIRONMENT=$srcdir/src/devices/xditview/GXditview.ad
32 GROFF_FONT_PATH=$builddir/font\
35 GROFF_TMAC_PATH=$srcdir/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\
48 export GROFF_BIN_PATH GROFF_COMMAND_PREFIX GROFF_FONT_PATH GROFF_TMAC_PATH
50 exec $builddir/groff -b -ww ${1+"$@"}