; MGTDOC.CMD - Build TOOLS.DOC from software tools sources.
;		See GETRNO.C
;
; Install required tasks. Quits if any are not installed.
;
.IFNINS GTR INS $GETRNO/TASK=...GTR
.IFNINS GTK INS $GETKWK/TASK=...GTK
.IFNINS KWI INS $KWIK/TASK=...KWI
.IFNINS RNO INS $RNO/TASK=...RNO
.IFNINS GTR .EXIT
.IFNINS GTK .EXIT
.IFNINS KWI .EXIT
.IFNINS RNO .EXIT
;
; Extract info from sources.
;
GTR    >TOOLS.RNO  -H TOOLHD.RNO -C *.C
;
; Build kwik index
;
GTK    >TOOLS.TMP  -C *.C
;
KWI -T 10 -W 64 <TOOLS.TMP  >TOOLIX.TMP
PIP TOOLS.TMP;*/DE
;
; Form RUNOFF source file
;
PIP TOOLS.RNO/NV/ME=TOOLS.RNO,IXTOOL.RNO,TOOLIX.TMP
PIP TOOLIX.TMP;*/DE
;
; Process with RUNOFF
;
RNO TOOLS/UL:L/-SP=TOOLS
;
; Done.
;
