/contrib/groff/test-groff.in

https://bitbucket.org/freebsd/freebsd-head/ · Autoconf · 34 lines · 27 code · 5 blank · 2 comment · 0 complexity · e36fbefee3cb93ad5e125b82d0abd6a7 MD5 · raw file

  1. #! /bin/sh
  2. # This script runs groff without requiring that it be installed.
  3. SEP='@PATH_SEPARATOR@'
  4. builddir=@abs_top_builddir@/src
  5. srcdir=@abs_top_srcdir@
  6. GROFF_BIN_PATH=\
  7. $builddir/roff/groff$SEP\
  8. $builddir/roff/troff$SEP\
  9. $builddir/preproc/pic$SEP\
  10. $builddir/preproc/eqn$SEP\
  11. $builddir/preproc/tbl$SEP\
  12. $builddir/preproc/grn$SEP\
  13. $builddir/preproc/refer$SEP\
  14. $builddir/preproc/soelim$SEP\
  15. $builddir/preproc/html$SEP\
  16. $builddir/devices/grops$SEP\
  17. $builddir/devices/grodvi$SEP\
  18. $builddir/devices/grotty$SEP\
  19. $builddir/devices/grolj4$SEP\
  20. $builddir/devices/grolbp$SEP\
  21. $builddir/devices/grohtml$SEP\
  22. $builddir/devices/xditview
  23. XENVIRONMENT=$srcdir/src/devices/xditview/GXditview.ad
  24. export XENVIRONMENT
  25. GROFF_COMMAND_PREFIX=
  26. GROFF_FONT_PATH=$builddir/../font$SEP$srcdir/font
  27. GROFF_TMAC_PATH=$srcdir/tmac
  28. export GROFF_BIN_PATH GROFF_COMMAND_PREFIX GROFF_FONT_PATH GROFF_TMAC_PATH
  29. exec $builddir/roff/groff/groff ${1+"$@"}