Skip to content

Commit a777935

Browse files
committed
Tuneup for CWEB 4.7.
* Add support for HiTeX/HINT.
1 parent cfadee4 commit a777935

24 files changed

Lines changed: 104 additions & 87 deletions

Makefile.unix

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
# Copyright (C) 1987,1990,1993,2000 Silvio Levy and Donald E. Knuth
55
#
66
# Modified for GCC under Linux by Andreas Scherer, June 8, 1996.
7-
# Last updated by Andreas Scherer, March 2021.
7+
# Last updated by Andreas Scherer, February 2022.
88

99
# The following copyright notice extends to the changes in this Makefile
1010
# only, not to any part of the original CWEB distribution.
1111
#
12-
# Copyright (C) 1994, 1996, 2000, 2005, 2021 Andreas Scherer
12+
# Copyright (C) 1994, 1996, 2000, 2005, 2022 Andreas Scherer
1313

1414
# Permission is granted to make and distribute verbatim copies of this
1515
# document provided that the copyright notice and this permission notice
@@ -137,9 +137,11 @@ CP= /bin/cp
137137

138138
# uncomment the second line if you use xetex to mogrify .dvi files into .pdf
139139
# uncomment the third line if you use pdftex to bypass .dvi files altogether
140+
# uncomment the forth line if you use hitex for HINT output
140141
PDFTEX = dvipdfm
141142
#PDFTEX = xetex
142143
#PDFTEX = pdftex
144+
#PDFTEX = hitex
143145

144146
########## You shouldn't have to change anything after this point #######
145147

@@ -247,6 +249,8 @@ ALL = $(ORIGINAL) $(CTWILLSRC) $(COMMPATCH) $(CTANGPATCH) $(CWEAVPATCH) \
247249
TEXINPUTS=.//: xetex "\let\pdf+ \input $*" ;; \
248250
pdftex ) TEXINPUTS=.//: pdftex $* ; \
249251
TEXINPUTS=.//: pdftex $* ;; \
252+
hitex ) TEXINPUTS=.//: hitex $* ; \
253+
TEXINPUTS=.//: hitex $* ;; \
250254
esac
251255

252256
.ref.sref: refsort
@@ -416,7 +420,7 @@ clean:
416420
$(RM) -f -r *~ *.o common.tex ctangle.tex cweave.tex ctwill.tex \
417421
cweave.$(EXTENSION) prod-cweave.w ctwill.$(EXTENSION) prod-twill.w \
418422
cwebbin.tex *-foo.* *-doc.ch *.orig *.rej \
419-
*.log *.dvi *.toc *.idx *.scn *.pdf core cweave ctangle \
423+
*.log *.dvi *.toc *.idx *.scn *.pdf *.hnt core cweave ctangle \
420424
ctwill refsort twinx refsort.c twinx.c
421425

422426
install: all

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[cweb system](http://www-cs-faculty.stanford.edu/~uno/cweb.html)
55
and donald e. knuth's [ctwill program](http://ftp.cs.stanford.edu/pub/ctwill).
66
it requires the contents of [the original *cweb* source
7-
drop](https://github.com/ascherer/cweb/releases/download/cweb-4.6/cweb-4.6.tar.gz)
7+
drop](https://github.com/ascherer/cweb/releases/download/cweb-4.7/cweb-4.7.tar.gz)
88
and [the secondary *ctwill* source
99
drop](http://ftp.cs.stanford.edu/pub/ctwill/ctwill.tar.gz), to which it applies
1010
a set of change files to introduce advanced features. see the extensive
@@ -21,11 +21,11 @@ a set of change files to introduce advanced features. see the extensive
2121

2222
## manual compilation
2323

24-
extract `ctwill.tar.gz` and add the contents of `cweb-4.6.tar.gz` (overwriting
25-
outdated source files) and `cwebbin-2021.6.tar.gz` (overwriting `README.md`)
24+
extract `ctwill.tar.gz` and add the contents of `cweb-4.7.tar.gz` (overwriting
25+
outdated source files) and `cwebbin-2022.1.tar.gz` (overwriting `README.md`)
2626
for the full set of source files.
2727
replace `@@VERSION@@` in line 129 of the `Makefile.unix` with something like
28-
`Version 4.6 [CWEBbin 2021.6]`.
28+
`Version 4.7 [CWEBbin 2022.1]`.
2929
`touch *.cxx`.
3030
unix/linux users should work with [`make -f Makefile.unix`](Makefile.unix)
3131
exclusively (targets `boot`, `cautiously`, and `all`).
@@ -39,8 +39,8 @@ sources and for creating installable packages in *rpm* and *deb* format. clone
3939
[cweb](https://github.com/ascherer/cweb) and
4040
[cwebbin](https://github.com/ascherer/cwebbin), create the source drops with
4141
```
42-
git archive -o cweb-4.6.tar.gz cweb-4.6
43-
git archive -o cwebbin-2021.6.tar.gz cwebbin-2021.6
42+
git archive -o cweb-4.7.tar.gz cweb-4.7
43+
git archive -o cwebbin-2022.1.tar.gz cwebbin-2022.1
4444
```
4545
respectively, put these two tarballs and the original `ctwill.tar.gz` in the
4646
*SOURCES* directory and `cwebbin.spec` in the *SPECS* directory of your build

README.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
-*-Text-*-
22
%%% LEGALESE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
33

4-
% This file is part of CWEBbin (Version 4.6 [2021]).
4+
% This file is part of CWEBbin (Version 4.7 [2022]).
55
% (Set TAB to 8 spaces to get the spacing right.)
66
% The CWEB programs by Silvio Levy are based on programs by D. E. Knuth.
77
% They are distributed WITHOUT ANY WARRANTY, express or implied.
88

9-
% This README file was last updated March 29, 2021 by Andreas Scherer.
9+
% This README file was last updated February 5, 2022 by Andreas Scherer.
1010

1111
% The following copyright notices extend to the respective parts of the
1212
% changed or added source code introduced in this patch only, not to the
@@ -16,7 +16,7 @@
1616
% Copyright (C) 1991-1993 Hans-Hermann Bode
1717
% Copyright (C) 1992 Klaus Guntermann
1818
% Copyright (C) 1991,1993 Carsten Steger
19-
% Copyright (C) 1993-2000,2005,2011,2018–2021 Andreas Scherer
19+
% Copyright (C) 1993-2000,2005,2011,2018–2022 Andreas Scherer
2020

2121
% Permission is granted to make and distribute verbatim copies of this
2222
% document provided that the copyright notice and this permission notice
@@ -382,6 +382,10 @@ So here are some words about the `special features':
382382
'evil twin' CTWILL, together with its utility programs 'refsort' and
383383
'twinx', and the associated TeX macros.
384384

385+
- [GENERAL] CWEB 4.7 introduced full support for
386+
Martin Ruckert's HiTeX and its HINT output format; see
387+
https://hint.userweb.mwn.de/hint/hitex.html for details.
388+
385389
%%% CREDIT WHERE CREDIT IS DUE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
386390

387391
I want to express my deep gratitude to Silvio Levy and Donald Knuth for the
@@ -391,7 +395,7 @@ and co-workers on whose initial ideas and contributions this package is based.
391395

392396
Happy CWEBbin'!
393397

394-
February 6, 2021
398+
February 5, 2022
395399

396400
Andreas Scherer
397401

comm-mini.ch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Limbo.
22

33
@x
4-
\def\title{Common code for CTANGLE and CWEAVE (Version 4.6 [CWEBbin 2021])}
4+
\def\title{Common code for CTANGLE and CWEAVE (Version 4.7 [CWEBbin 2022])}
55
@y
6-
\def\title{COMMON (Version 4.6 [CWEBbin 2021])}
6+
\def\title{COMMON (Version 4.7 [CWEBbin 2022])}
77
\def\contentspagenumber{0}
88
@z
99

comm-newpage.ch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@x
2-
\def\contentspagenumber{28}
2+
\def\contentspagenumber{29}
33
@y
4-
\def\contentspagenumber{30}
4+
\def\contentspagenumber{31}
55
\input Xcwebmac
66
\input pdfwebtocfront
77
@z

comm-patch.ch

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-*-Web-*-
22
This file, COMM-FOO.CH, is part of CWEBBIN (@VERSION@).
3-
It is a changefile for COMMON.W, Version 4.6.
3+
It is a changefile for COMMON.W, Version 4.7.
44

55
Technically, COMM-FOO.CH is constructed from a multitude of separate change
66
files by applying Klaus Guntermann's TIE processor. Any comments (like this
@@ -34,7 +34,7 @@ This program is distributed WITHOUT ANY WARRANTY, express or implied.
3434
The following copyright notice extends to this changefile only, not to
3535
the masterfile COMMON.W.
3636

37-
Copyright (C) 1993-1995,1998,2000,2005,2020,2021 Andreas Scherer
37+
Copyright (C) 1993-1995,1998,2000,2005,2018-2022 Andreas Scherer
3838
Copyright (C) 1991,1993 Carsten Steger
3939
Copyright (C) 1991-1993 Hans-Hermann Bode
4040

@@ -179,17 +179,19 @@ p21 29 October 2005 AS ANSI C++ patches to patch level [p21].
179179
06 June 2021 AS Tuneup for CWEB 4.4 [2021].
180180
14 July 2021 AS Tuneup for CWEB 4.5 [2021].
181181
25 December 2021 AS Tuneup for CWEB 4.6 [2021].
182+
183+
2022 05 February 2022 AS Tuneup for CWEB 4.7 [2022].
182184
------------------------------------------------------------------------------
183185
Material in limbo.
184186

185187
@x l.25
186-
\def\title{Common code for CTANGLE and CWEAVE (Version 4.6)}
188+
\def\title{Common code for CTANGLE and CWEAVE (Version 4.7)}
187189
@y
188190
\def\title{Common code for CTANGLE and CWEAVE (@VERSION@)}
189191
@z
190192

191193
@x l.30
192-
\centerline{(Version 4.6)}
194+
\centerline{(Version 4.7)}
193195
@y
194196
\centerline{(@VERSION@)}
195197
@z

comm-texlive.ch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ Material in limbo.
1313
\def\title{Common code for CTANGLE and CWEAVE (@VERSION@)}
1414
@y
1515
\def\Kpathsea/{{\mc KPATHSEA\spacefactor1000}} \ifacro\sanitizecommand\Kpathsea{KPATHSEA}\fi
16-
\def\title{Common code for CTANGLE and CWEAVE (4.6 [\TeX~Live])}
16+
\def\title{Common code for CTANGLE and CWEAVE (4.7 [\TeX~Live])}
1717
@z
1818

1919
@x l.30 and l.191 of COMM-PATCH.CH
2020
\centerline{(@VERSION@)}
2121
@y
22-
\centerline{(Version 4.6 [\TeX~Live])}
22+
\centerline{(Version 4.7 [\TeX~Live])}
2323
@z
2424

2525
@x l.32

ctang-newpage.ch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@x
2-
\def\contentspagenumber{64}
2+
\def\contentspagenumber{65}
33
@y
4-
\def\contentspagenumber{73}
4+
\def\contentspagenumber{74}
55
\input Xcwebmac
66
\input pdfwebtocfront
77
@z

ctang-patch.ch

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-*-Web-*-
22
This file, CTANG-FOO.CH, is part of CWEBBIN (@VERSION@).
3-
It is a changefile for CTANGLE.W, Version 4.6.
3+
It is a changefile for CTANGLE.W, Version 4.7.
44

55
Technically, CTANG-FOO.CH is constructed from a multitude of separate
66
change files by applying Klaus Guntermann's TIE processor. Any comments
@@ -31,7 +31,7 @@ This program is distributed WITHOUT ANY WARRANTY, express or implied.
3131
The following copyright notice extends to this changefile only, not to
3232
the masterfile CTANGLE.W.
3333

34-
Copyright (C) 1993-1995,1998,2000,2005,2011,2019,2021 Andreas Scherer
34+
Copyright (C) 1993-1995,1998,2000,2005,2011,2018-2022 Andreas Scherer
3535
Copyright (C) 1991-1993 Hans-Hermann Bode
3636

3737
Permission is granted to make and distribute verbatim copies of this
@@ -156,24 +156,26 @@ p21 29 October 2005 AS ANSI C++ patches for patch level [p21].
156156
2018 17 October 2018 AS Updated version number [2018].
157157
06 November 2018 AS Integration with TeXLive.
158158

159-
2021 04 February 2021 AS 2021 tuneup for CWEB 4.0 [2021].
160-
20 February 2021 AS 2021 tuneup for CWEB 4.1 [2021].
161-
25 February 2021 AS 2021 tuneup for CWEB 4.2 [2021].
162-
13 April 2021 AS 2021 tuneup for CWEB 4.3 [2021].
163-
06 June 2021 AS 2021 tuneup for CWEB 4.4 [2021].
164-
14 July 2021 AS 2021 tuneup for CWEB 4.5 [2021].
165-
25 December 2021 AS 2021 tuneup for CWEB 4.6 [2021].
159+
2021 04 February 2021 AS tuneup for CWEB 4.0 [2021].
160+
20 February 2021 AS tuneup for CWEB 4.1 [2021].
161+
25 February 2021 AS tuneup for CWEB 4.2 [2021].
162+
13 April 2021 AS tuneup for CWEB 4.3 [2021].
163+
06 June 2021 AS tuneup for CWEB 4.4 [2021].
164+
14 July 2021 AS tuneup for CWEB 4.5 [2021].
165+
25 December 2021 AS tuneup for CWEB 4.6 [2021].
166+
167+
2022 05 February 2022 AS tuneup for CWEB 4.7 [2022].
166168
------------------------------------------------------------------------------
167169
Material in limbo.
168170

169171
@x l.30
170-
\def\title{CTANGLE (Version 4.6)}
172+
\def\title{CTANGLE (Version 4.7)}
171173
@y
172174
\def\title{CTANGLE (@VERSION@)}
173175
@z
174176

175177
@x l.34
176-
\centerline{(Version 4.6)}
178+
\centerline{(Version 4.7)}
177179
@y
178180
\centerline{(@VERSION@)}
179181
@z
@@ -189,7 +191,7 @@ z
189191
Section 1.
190192

191193
@x l.64
192-
@d banner "This is CTANGLE (Version 4.6)"
194+
@d banner "This is CTANGLE (Version 4.7)"
193195
@y
194196
@d banner "This is CTANGLE (@VERSION@)"
195197
@z

ctang-texlive.ch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ Material in limbo.
1212
@x l.30 and l.169 of CTANG-PATCH.CH
1313
\def\title{CTANGLE (@VERSION@)}
1414
@y
15-
\def\title{CTANGLE (Version 4.6 [\TeX~Live])}
15+
\def\title{CTANGLE (Version 4.7 [\TeX~Live])}
1616
@z
1717

1818
@x l.34 and l.175 of CTANG-PATCH.CH
1919
\centerline{(@VERSION@)}
2020
@y
21-
\centerline{(Version 4.6 [\TeX~Live])}
21+
\centerline{(Version 4.7 [\TeX~Live])}
2222
@z
2323

2424
@x l.36
@@ -38,7 +38,7 @@ Section 1.
3838
@x l.64 and l.188 of CTANG-PATCH.CH and l.17 of CTANG-I18N.CH
3939
@d banner _("This is CTANGLE (@VERSION@)")
4040
@y
41-
@d banner "This is CTANGLE, Version 4.6"
41+
@d banner "This is CTANGLE, Version 4.7"
4242
/* will be extended by the \TeX~Live |versionstring| */
4343
@z
4444

0 commit comments

Comments
 (0)