; MGTDOC.CMD
;
; Build Library RUNOFF on RSX-11M, run as an indirect command file
; NOTE: this command file does not build CC.DOC, AS.DOC or CBUGS.DOC
;
;			(Warning: untested)
;
; Extract info from library MACRO sources.
;
INS [5,26]GETRNO/TASK=...GTR
GTR    >[5,3]CLIB.RNO   -M -H [5,3]CLIBHD.RNO [5,15]*.MAC [5,16]*.MAC
; GTR -U >[5,3]CLIBUS.RNO                    [5,15]*.MAC [5,16]*.MAC
GTR -W >[5,3]WIZARD.RNO -M -H [5,3]CLIBHD.RNO [5,15]*.MAC [5,16]*.MAC
GTR    >[5,3]TOOLS.RNO  -C -H [5,3]TOOLHD.RNO [5,26]*.C [5,12]LEX.C
;
; Build kwik indexes
;
INS [5,26]GETKWK/TASK=...GTK
GTK    >[5,3]CLIB.TMP      [5,15]*.MAC [5,16]*.MAC
GTK -W >[5,3]WIZARD.TMP    [5,15]*.MAC [5,16]*.MAC
GTK    >[5,3]TOOLS.TMP  -C [5,26]*.C   [5,12]LEX.C
;
INS [5,26]KWIK/TASK=...KWK
KWK -T 10 -W 64 <CLIB.TMP   >CLIBIX.TMP
PIP CLIB.TMP;*/DE
KWK -T 10 -W 64 <WIZARD.TMP >WIZIX.TMP
PIP WIZARD.TMP;*/DE
KWK -T 10 -W 64 <TOOLS.TMP  >TOOLIX.TMP
PIP TOOLS.TMP;*/DE
;
; Mark funny bytes in the index.
;
INS [5,26]RNOIDX/TASK=...idx
IDX <CLIBIX.TMP >CLIBIX.FIX
PIP CLIBIX.TMP;*/DE
IDX <WIZIX.TMP >WIZIX.FIX
PIP WIZIX.TMP;*/DE
IDX <TOOLIX.TMP >TOOLIX.FIX
PIP TOOLIX.TMP;*/DE
;
; Form RUNOFF source files, appending index
;
PIP WIZARD.RNO/NV/ME=WIZARD.RNO,IXHEAD.RNO,WIZIX.FIX
PIP CLIB.RNO/NV/ME=CLIB.RNO,IXHEAD.RNO,CLIBIX.FIX
PIP TOOLS.RNO/NV/ME=TOOLS.RNO,IXTOOL.RNO,TOOLS.FIX
PIP WIZARD.RNO/PU,CLIB.RNO,TOOLS.RNO
PIP WIZARD.DOC;*/DE/NM,CLIB.DOC;*,TOOLS.DOC;*
PIP WIZFIX.FIX;*/DE
PIP CLIBIX.FIX;*/DE
PIP TOOLS.FIX;*/DE
;
; Process with RUNOFF
;
.IFNINS RNO INS $RNO
RNO CLIB/UL:L/-SP=CLIB
RNO WIZARD/UL:L/-SP=WIZARD
RNO TOOLS/UL:L/-SP=TOOLS
;
; Done.
