


1 WEB

This is a quick (and very dirty) procedure to generate everything possible
from a WEB source file.

         $ WEB  name

The input to this procedure is the file "name.WEB".
2 Tools

Lots of TeX related software tools are used.

      *  DVIALW

      *  DVILN03

      *  LINK

      *  LST

      *  PASCAL

      *  PASPRETTY

      *  TANGLE

      *  TEX

      *  WEAVE

2 Files

The following input files are used.

      *  name.WEB        WEB source file.

      *  WEBMAC.TEX      from TEX_INPUTS directory.


Lots of TeX related output files are created.

      *  CONTENTS.TEX    WEAVE output file, for table of contents.

      *  name.DVI        TEX output, device independent file.

      *  name.DVI-ALW    DVIALW output file, Postcript.

      *  name.EXE        Tool executable.

      *  name.LIS        TEX listing file.

      *  name.LN3        DVILN03 output file, for printing on LN03 printer.

      *  name.LST        LST tool output file.

      *  name.OBJ        Object file created by PASCAL compiler.

      *  name.PAS        TANGLE output Pascal source file.

      *  name.PASPRETTY  PASPRETTY tool output file.

      *  name.TEX        WEAVE output file, and input to TEX.

2 Examples

The following builds everything possible from the PRIMES.WEB sample program
that is distributed with most TeX distributions (in the [TEX.DOC]
directory). The PRIMES.WEB file must (of course) be in the current default
directory

         $ WEB PRIMES

The following is what happens if the WEB file that you specify does not
exist.

         $ WEB XXX
         %WEB-F-FNF, file XXX.WEB not found

The following is what happens if you neglect to specify the name of a WEB
file.

         $ WEB
         %WEB-F-NOWEB, no WEB source file name was specified
2 Author
         Donald E. Amby
         Delco Systems Operations, Milwaukee, Wisconsin
2 Processing

     a.  Define all of the local symbols, that will essentially be used as
         constants, variables, and DCL commands within this procedure.

     b.  Establish CONTROL/Y handler.

     c.  Check to see if a WEB source name was entered. If not go output an
         error message and exit.

     d.  Next check to see if the WEB file actually exists, if the user
         gave the name. If not, again just go output message and exit.

     e.  See if there is a change file (name.CH). If not, create an empty
         one so that WEAVE and TANGLE can run without prompting user for
         one.

     f.  Now generate everything that is possible to build from the input
         source file (name.WEB), using the tools listed.

         1.  weave

         2.  tex

         3.  dvialw

         4.  dviln03

         5.  tangle

         6.  paspretty

         7.  lst

         8.  pascal

         9.  link


