% This file is part of CWEB.
% This program by Silvio Levy is based on a program by D. E. Knuth.
% It is distributed WITHOUT ANY WARRANTY, express or implied.
% $Revision 2.0$ -- Don Knuth, July 1990

% Copyright (C) 1987,1990 Silvio Levy and Donald E. Knuth

% Permission is granted to make and distribute verbatim copies of this
% document provided that the copyright notice and this permission notice
% are preserved on all copies.

% Permission is granted to copy and distribute modified versions of this
% document under the conditions for verbatim copying, provided that the
% entire resulting derived work is distributed under the terms of a
% permission notice identical to this one.

% Please send comments, suggestions, etc. to levy@princeton.

This directory contains the following files:

Makefile
README
common-vms.ch
common.c
common.h
common.w
ctangle.c
ctangle.w
cweave-sunview.ch
cweave.w
cweb.1
cweb.el
cwebmac.tex
cwebman.tex
examples/
prod.w

(If you got cweb by mail, you probably have cweave.w.1 and cweave.w.2
instead of cweave.w.  The first thing to say then is

cat cweave.w.[12] > cweave.w

)

The file cwebman.tex is the user manual.
The examples directory contains additional examples of the use of CWEB.
The files common.c and ctangle.c are used for bootstrapping.
The file cweb.1 is a manual page.
The file cweb.el is suggested for GNU-Emacs users.
The files *.ch are sample change files for local customization.

Please touch ctangle.c and common.c before proceeding.
Then edit the opening lines of Makefile so that it has the proper
directory information for your local system.

To make ctangle and cweave say `make all'; this should produce the
following actions (possibly with harmless warning messages from cc):

cc -g -DDEBUG -DSTAT -w -c ctangle.c
cc -g -DDEBUG -DSTAT -w -c common.c
cc -g -DDEBUG -DSTAT -w -o ctangle ctangle.o common.o 
./ctangle cweave
cc -g -DDEBUG -DSTAT -w -c cweave.c
cc -g -DDEBUG -DSTAT -w -o cweave cweave.o common.o

To get some reassurance that things are OK, you can say `make cautiously',
which ensures that CTANGLE will reproduce itself. (Otherwise the source
files common.w and ctangle.w won't actually have been used.)

To install cweave and ctangle say `make install'.

Note that a change file for vms is provided.  There are only two
changes, so common.c can be edited by hand.
