diff options
author | Andreas Scherer <andreas_tex@freenet.de> | 2021-10-11 15:21:35 +0000 |
---|---|---|
committer | Andreas Scherer <andreas_tex@freenet.de> | 2021-10-11 15:21:35 +0000 |
commit | 885c6c0a19aea7e3583ab2c03916e1e0a4c04554 (patch) | |
tree | e9306a9299e79e1cae2a95a2ce8232876c70c062 /Build/source/texk/web2c/cwebdir/ctwill-w2c.ch | |
parent | 5a9a95dd3cc51469724c8b6f67d4d963ae05b0e5 (diff) |
[CWEB] Pre-release candidate 2 for CWEB 4.6.
When the CWEB programs are called with option '-c' (the default), no
intermediate output files are created at all. After thoroughly testing
these programs, I'll prepare the final release of CWEB 4.6 in the coming
weeks (months).
git-svn-id: svn://tug.org/texlive/trunk@60728 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/cwebdir/ctwill-w2c.ch')
-rw-r--r-- | Build/source/texk/web2c/cwebdir/ctwill-w2c.ch | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/Build/source/texk/web2c/cwebdir/ctwill-w2c.ch b/Build/source/texk/web2c/cwebdir/ctwill-w2c.ch index 1add5c76364..d46f2d6eb33 100644 --- a/Build/source/texk/web2c/cwebdir/ctwill-w2c.ch +++ b/Build/source/texk/web2c/cwebdir/ctwill-w2c.ch @@ -1157,7 +1157,6 @@ if (no_xref) { finish_line(); out_str("\\end"); @.\\end@> - active_file=tex_file; } @z @@ -1194,8 +1193,8 @@ if (no_xref) { @y @.\\end@> } -finish_line(); fclose(active_file); active_file=NULL; -@<Update the result when it has changed@>@; +finish_line(); fclose(active_file); active_file=tex_file=NULL; +if (check_for_change) @<Update the result when it has changed@>@; @z @x @@ -1981,15 +1980,16 @@ a function block. @<Set init...@>= order_decl_stmt=true; -@* Output file update. Most \CEE/ projects are controlled by a -\.{Makefile} that automatically takes care of the temporal dependecies -between the different source modules. It is suitable that \.{CWEB} doesn't -create new output for all existing files, when there are only changes to -some of them. Thus the \.{make} process will only recompile those modules -where necessary. The idea and basic implementation of this mechanism can -be found in the program \.{NUWEB} by Preston Briggs, to whom credit is due. +@* Output file update. Most \CEE/ projects are controlled by a \.{Makefile} +that automatically takes care of the temporal dependecies between the different +source modules. It may be convenient that \.{CWEB} doesn't create new output +for all existing files, when there are only changes to some of them. Thus the +\.{make} process will only recompile those modules where necessary. You can +activate this feature with the `\.{+c}' command-line option. The idea and basic +implementation of this mechanism can be found in the program \.{NUWEB} by +Preston Briggs, to whom credit is due. -@<Update the result...@>= +@<Update the result...@>= { if((tex_file=fopen(tex_file_name,"r"))!=NULL) { boolean comparison=false; @@ -1997,7 +1997,7 @@ if((tex_file=fopen(tex_file_name,"r"))!=NULL) { fatal(_("! Cannot open output file "),check_file_name); @.Cannot open output file@> - if (check_for_change) @<Compare the temporary output...@>@; + @<Compare the temporary output...@>@; fclose(tex_file); tex_file=NULL; fclose(check_file); check_file=NULL; @@ -2007,6 +2007,7 @@ if((tex_file=fopen(tex_file_name,"r"))!=NULL) { rename(check_file_name,tex_file_name); /* This was the first run */ strcpy(check_file_name,""); /* We want to get rid of the temporary file */ +} @ We hope that this runs fast on most systems. |