| 1 |
% This file is part of CWEB. |
| 2 |
% The CWEB programs by Silvio Levy are based on programs by D. E. Knuth. |
| 3 |
% They are distributed WITHOUT ANY WARRANTY, express or implied. |
| 4 |
% This README file last updated May 2021 by Andreas Scherer |
| 5 |
|
| 6 |
% Copyright (C) 1987,1990,1993,2000,2016 Silvio Levy and Donald E. Knuth |
| 7 |
|
| 8 |
% Permission is granted to make and distribute verbatim copies of this |
| 9 |
% document provided that the copyright notice and this permission notice |
| 10 |
% are preserved on all copies. |
| 11 |
|
| 12 |
% Permission is granted to copy and distribute modified versions of this |
| 13 |
% document under the conditions for verbatim copying, provided that the |
| 14 |
% entire resulting derived work is given a different name and distributed |
| 15 |
% under the terms of a permission notice identical to this one. |
| 16 |
|
| 17 |
% Please send comments, suggestions, etc. to [email protected], and people |
| 18 |
% there will verify and forward bug reports. |
| 19 |
% |
| 20 |
% DEK takes no responsibility for the changefiles; they should be |
| 21 |
% maintained independently. He even transferred the job to correct errors |
| 22 |
% in ctangle.w, cweave.w, prod.w, common.w, cwebmac.tex, cwebman.tex, |
| 23 |
% and in the files of examples/*.w to Andreas Scherer in 2021. |
| 24 |
% Further significant developments, including versions that neither |
| 25 |
% Don Knuth nor Silvio Levy themselves do maintain, are ongoing. |
| 26 |
% All of the really current news about CWEB is, in fact, now to be found |
| 27 |
% on the CWEB development page https://github.com/ascherer/cweb. |
| 28 |
|
| 29 |
This directory contains the following files: |
| 30 |
|
| 31 |
Makefile |
| 32 |
README |
| 33 |
comm-amiga.ch |
| 34 |
comm-bs.ch |
| 35 |
comm-mac.ch |
| 36 |
comm-man.ch |
| 37 |
comm-os2.ch |
| 38 |
comm-pc.ch |
| 39 |
comm-ql.ch |
| 40 |
comm-vms.ch |
| 41 |
comm-w32.ch |
| 42 |
common.c |
| 43 |
common.h |
| 44 |
common.w |
| 45 |
ctang-bs.ch |
| 46 |
ctang-man.ch |
| 47 |
ctang-pc.ch |
| 48 |
ctang-ql.ch |
| 49 |
ctang-vms.ch |
| 50 |
ctang-w32.ch |
| 51 |
ctangle.c |
| 52 |
ctangle.w |
| 53 |
cweav-bs.ch |
| 54 |
cweav-man.ch |
| 55 |
cweav-pc.ch |
| 56 |
cweav-ql.ch |
| 57 |
cweav-vms.ch |
| 58 |
cweave-w32.ch |
| 59 |
cweave.w |
| 60 |
cweb.1 |
| 61 |
cweb.el |
| 62 |
cwebacromac.tex |
| 63 |
cwebmac.tex |
| 64 |
cwebman.tex |
| 65 |
examples/ |
| 66 |
makefile.bs |
| 67 |
prod.w |
| 68 |
readme.ql |
| 69 |
c++lib.w |
| 70 |
iso_types.w |
| 71 |
|
| 72 |
The file cwebman.tex is the user manual. |
| 73 |
The examples directory contains additional examples of the use of CWEB. |
| 74 |
The files common.c and ctangle.c are used for bootstrapping. |
| 75 |
The file cweb.1 is a manual page. |
| 76 |
The file cweb.el is suggested for GNU-Emacs users. |
| 77 |
The files c++lib.w and iso_types.w are for C++ users (say `@i c++lib.w' |
| 78 |
and/or `@i iso_types.w' at beginning of program). |
| 79 |
The files *-man.ch are used if you want to make the full 243-page CWEB manual. |
| 80 |
The files *-bs.ch are used instead of *-pc.ch if you are doing BIG programs. |
| 81 |
You can use makefile.bs to make CWEB with *-bs.ch. |
| 82 |
The files *-ql.ch are for QDOS/SMSQ systems; see readme.ql for further info. |
| 83 |
The files *-w32.ch use __fastcall conventions on win32 systems. |
| 84 |
The file comm-mac.ch is for Macintosh conventions. |
| 85 |
The other files named *.ch are sample change files for local customization. |
| 86 |
|
| 87 |
IMPORTANT: Please touch *.c before proceeding. |
| 88 |
Then edit the opening lines of Makefile so that it has the proper |
| 89 |
directory information for your local system. |
| 90 |
|
| 91 |
To make ctangle and cweave say `make all'; this should produce roughly |
| 92 |
the following actions (possibly with harmless warning messages from cc): |
| 93 |
|
| 94 |
cc -g -w -c ctangle.c |
| 95 |
cc -g -w -DCWEBINPUTS=\"/usr/local/lib/cweb\" -c common.c |
| 96 |
cc -g -o ctangle ctangle.o common.o |
| 97 |
./ctangle cweave |
| 98 |
cc -g -w -c cweave.c |
| 99 |
cc -g -w -o cweave cweave.o common.o |
| 100 |
|
| 101 |
To get some reassurance that things are OK, you can say `make cautiously', |
| 102 |
which ensures that CTANGLE will reproduce itself. (Otherwise the source |
| 103 |
files common.w and ctangle.w won't actually have been used.) |
| 104 |
|
| 105 |
To install cweave and ctangle say `make install'. You probably need to |
| 106 |
be superuser to do this; but it's wise to `make all' first, BEFORE |
| 107 |
becoming superuser and saying `make install'. |
| 108 |
|
| 109 |
Note that change files for VMS, AMIGA, MAC, and PCs are provided. When you |
| 110 |
are first bootstrapping to a new system, you may need to edit common.c and |
| 111 |
ctangle.c by hand, but the vast majority of the change-file changes are |
| 112 |
minor refinements that are not necessary for a rudimentary ctangle. |