1Rem Copyright (C) 2000-2018 Free Software Foundation, Inc. 2Rem 3Rem This file is part of groff. 4Rem 5Rem groff is free software; you can redistribute it and/or modify it under 6Rem the terms of the GNU General Public License as published by the Free 7Rem Software Foundation; either version 3 of the License, or (at your option) 8Rem any later version. 9Rem 10Rem groff is distributed in the hope that it will be useful, but WITHOUT ANY 11Rem WARRANTY; without even the implied warranty of MERCHANTABILITY or 12Rem FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 13Rem for more details. 14Rem 15Rem You should have received a copy of the GNU General Public License along 16Rem with this program. If not, see <http://www.gnu.org/licenses/>. 17Rem 18Rem This script runs groff without requiring that it be installed. 19 20@echo off 21Rem This script runs groff without requiring that it be installed. 22Rem The current directory must be the build directory. 23 24test -d ./src/roff/groff 25if not errorlevel 1 goto dirOk 26echo this batch file must be run with the build directory as the current directory 27goto end 28:dirOk 29test -x ./src/roff/groff/groff 30if not errorlevel 1 goto groffOk 31echo this batch file must be run with the build directory as the current directory 32goto end 33:groffOk 34Rem chdir to src, to avoid overflowing the DOS limits with a long PATH. 35cd src 36set GROFF_FONT_PATH=..;../font 37set GROFF_TMAC_PATH=../tmac 38set PATH1=%PATH% 39set PATH=roff\troff;preproc\pic;preproc\eqn;preproc\tbl;preproc\grn;preproc\refer;preproc\soelim;devices\grotty;%PATH1% 40Rem 41echo I will use this command to format a document and print it on the screen: 42roff\groff\groff -V -e -s -t -p -R -m ttchar -me -Tascii ../doc/meintro.me 43pause 44Rem Make the following command pipe to Less if you have Less installed: 45roff\groff\groff -e -s -t -p -R -m ttchar -me -Tascii ../doc/meintro.me 46Rem 47set PATH=roff\troff;preproc\pic;preproc\eqn;preproc\tbl;preproc\grn;preproc\refer;preproc\soelim;devices\grops;%PATH1% 48echo I will use this command to format a document and print it on PS printer: 49roff\groff\groff -V -e -s -t -p -R -me -Tps ../doc/meintro.me 50pause 51Rem Uncomment the following command if you have a PostScript printer: 52REM roff\groff\groff -e -s -t -p -R -me -Tps ../doc/meintro.me >>prn 53Rem 54set PATH=roff\troff;preproc\pic;preproc\eqn;preproc\tbl;preproc\grn;preproc\refer;preproc\soelim;devices\grolj4;%PATH1% 55echo I will use this command to format a document and print it on LJ4 printer: 56roff\groff\groff -V -e -s -t -p -R -me -Tlj4 ../doc/meintro.me 57pause 58Rem Uncomment the following command if you have a LaserJet4 printer: 59REM roff\groff\groff -e -s -t -p -R -me -Tlj4 ../doc/meintro.me >>prn 60Rem 61set PATH=roff\troff;preproc\pic;preproc\eqn;preproc\tbl;preproc\grn;preproc\refer;preproc\soelim;devices\grodvi;%PATH1% 62echo I will use this command to format a document into a DVI format: 63roff\groff\groff -V -e -s -t -p -R -me -Tdvi ../doc/meintro.me 64pause 65roff\groff\groff -e -s -t -p -R -me -Tdvi ../doc/meintro.me > meintro.dvi 66set PATH=roff\troff;preproc\pic;preproc\eqn;preproc\tbl;preproc\grn;preproc\refer;preproc\soelim;devices\grohtml;%PATH1% 67echo I will use this command to format a document into HTML format: 68roff\groff\groff -V -e -s -t -p -R -me -Thtml ../doc/meintro.me 69pause 70roff\groff\groff -e -s -t -p -R -me -Thtml ../doc/meintro.me > meintro.html 71set PATH=roff\troff;preproc\pic;preproc\eqn;preproc\tbl;preproc\grn;preproc\refer;preproc\soelim;devices\grolbp;%PATH1% 72echo I will use this command to format a document and print it on an LBP printer: 73roff\groff\groff -V -e -s -t -p -R -me -Tlbp ../doc/meintro.me 74pause 75Rem Uncomment the following if you have a Canon CAPSL LBP-4 or LBP-8 printer: 76REM roff\groff\groff -e -s -t -p -R -me -Tlbp ../doc/meintro.me >>prn 77Rem 78set PATH=%PATH1% 79set GROFF_FONT_PATH= 80set GROFF_TMAC_PATH= 81set PATH1= 82cd .. 83:exit 84