diff options
author | pst <pst@FreeBSD.org> | 1996-09-07 16:18:32 +0000 |
---|---|---|
committer | pst <pst@FreeBSD.org> | 1996-09-07 16:18:32 +0000 |
commit | 7fdf49473c970aa96ee1bae16928d1db23643228 (patch) | |
tree | 0abcbad9804fcf7a7157983937cadcf61449b840 /contrib/groff/test-groff | |
download | FreeBSD-src-7fdf49473c970aa96ee1bae16928d1db23643228.zip FreeBSD-src-7fdf49473c970aa96ee1bae16928d1db23643228.tar.gz |
Virgin import of FSF groff v1.10
Diffstat (limited to 'contrib/groff/test-groff')
-rwxr-xr-x | contrib/groff/test-groff | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/contrib/groff/test-groff b/contrib/groff/test-groff new file mode 100755 index 0000000..35fd0e0 --- /dev/null +++ b/contrib/groff/test-groff @@ -0,0 +1,26 @@ +#! /bin/sh +# This script runs groff without requiring that it be installed. +# The current directory must be the build directory. + +builddir=. +srcdir=`echo $0 | sed -e 's;/[^/]*$;;'` + +if test ! -d groff || test ! -r groff/groff +then + echo $0 must be run with the build directory as the current directory 2>&1 + exit 1 +fi + +PATH=$builddir/troff:$builddir/pic:$builddir/eqn:$builddir/tbl:$builddir/refer:$builddir/soelim:$builddir/grops:$builddir/grodvi:$builddir/grotty:$srcdir/$builddir/xditview:$PATH + +test -n "$srcdir" || srcdir=. + +XENVIRONMENT=`cd $srcdir; pwd`/xditview/GXditview.ad +export XENVIRONMENT + +GROFF_COMMAND_PREFIX= +GROFF_FONT_PATH=$builddir:$srcdir +GROFF_TMAC_PATH=$srcdir/tmac:$srcdir/troff +export PATH GROFF_COMMAND_PREFIX GROFF_FONT_PATH GROFF_TMAC_PATH + +exec $builddir/groff/groff ${1+"$@"} |