2 Rem This script runs groff without requiring that it be installed.
\r
3 Rem The current directory must be the build directory.
\r
5 test -d ./src/roff/groff
\r
6 if not errorlevel 1 goto dirOk
\r
7 echo this batch file must be run with the build directory as the current directory
\r
10 test -x ./src/roff/groff/groff
\r
11 if not errorlevel 1 goto groffOk
\r
12 echo this batch file must be run with the build directory as the current directory
\r
15 Rem chdir to src, to avoid overflowing the DOS limits with a long PATH.
\r
17 set GROFF_FONT_PATH=..;../font
\r
18 set GROFF_TMAC_PATH=../tmac
\r
20 set PATH=roff\troff;preproc\pic;preproc\eqn;preproc\tbl;preproc\grn;preproc\refer;preproc\soelim;devices\grotty;%PATH1%
\r
22 echo I will use this command to format a document and print it on the screen:
\r
23 roff\groff\groff -V -e -s -t -p -R -m ttchar -me -Tascii ../doc/meintro.me
\r
25 Rem Make the following command pipe to Less if you have Less installed:
\r
26 roff\groff\groff -e -s -t -p -R -m ttchar -me -Tascii ../doc/meintro.me
\r
28 set PATH=roff\troff;preproc\pic;preproc\eqn;preproc\tbl;preproc\grn;preproc\refer;preproc\soelim;devices\grops;%PATH1%
\r
29 echo I will use this command to format a document and print it on PS printer:
\r
30 roff\groff\groff -V -e -s -t -p -R -me -Tps ../doc/meintro.me
\r
32 Rem Uncomment the following command if you have a PostScript printer:
\r
33 REM roff\groff\groff -e -s -t -p -R -me -Tps ../doc/meintro.me >>prn
\r
35 set PATH=roff\troff;preproc\pic;preproc\eqn;preproc\tbl;preproc\grn;preproc\refer;preproc\soelim;devices\grolj4;%PATH1%
\r
36 echo I will use this command to format a document and print it on LJ4 printer:
\r
37 roff\groff\groff -V -e -s -t -p -R -me -Tlj4 ../doc/meintro.me
\r
39 Rem Uncomment the following command if you have a LaserJet4 printer:
\r
40 REM roff\groff\groff -e -s -t -p -R -me -Tlj4 ../doc/meintro.me >>prn
\r
42 set PATH=roff\troff;preproc\pic;preproc\eqn;preproc\tbl;preproc\grn;preproc\refer;preproc\soelim;devices\grodvi;%PATH1%
\r
43 echo I will use this command to format a document into a DVI format:
\r
44 roff\groff\groff -V -e -s -t -p -R -me -Tdvi ../doc/meintro.me
\r
46 roff\groff\groff -e -s -t -p -R -me -Tdvi ../doc/meintro.me > meintro.dvi
\r
47 set PATH=roff\troff;preproc\pic;preproc\eqn;preproc\tbl;preproc\grn;preproc\refer;preproc\soelim;devices\grohtml;%PATH1%
\r
48 echo I will use this command to format a document into HTML format:
\r
49 roff\groff\groff -V -e -s -t -p -R -me -Thtml ../doc/meintro.me
\r
51 roff\groff\groff -e -s -t -p -R -me -Thtml ../doc/meintro.me > meintro.html
\r
52 set PATH=roff\troff;preproc\pic;preproc\eqn;preproc\tbl;preproc\grn;preproc\refer;preproc\soelim;devices\grolbp;%PATH1%
\r
53 echo I will use this command to format a document and print it on an LBP printer:
\r
54 roff\groff\groff -V -e -s -t -p -R -me -Tlbp ../doc/meintro.me
\r
56 Rem Uncomment the following if you have a Canon CAPSL LBP-4 or LBP-8 printer:
\r
57 REM roff\groff\groff -e -s -t -p -R -me -Tlbp ../doc/meintro.me >>prn
\r
60 set GROFF_FONT_PATH=
\r
61 set GROFF_TMAC_PATH=
\r