diff options
author | Andreas Scherer <andreas_tex@freenet.de> | 2020-04-10 11:14:07 +0000 |
---|---|---|
committer | Andreas Scherer <andreas_tex@freenet.de> | 2020-04-10 11:14:07 +0000 |
commit | 9ebef863fbd274ccc04480e1f12b7ce385c739c8 (patch) | |
tree | a1ce3d49bc55a3f819f5cae68eaa5abc0bcbf686 /Build/source/texk/web2c/cwebdir/ctang-w2c.ch | |
parent | ffb1a15162aabae2a564f442f4041b4f4f1766d7 (diff) |
[CWEB] Add new command-line option '-t'.
If disabled with '-t', the temporary output is ignored unconditionally
and the final output is (re-)created irrespective of changes between
runs. (Default is '+t' for CWEB={ctangle,cweave,ctwill}.)
git-svn-id: svn://tug.org/texlive/trunk@54639 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/cwebdir/ctang-w2c.ch')
-rw-r--r-- | Build/source/texk/web2c/cwebdir/ctang-w2c.ch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/cwebdir/ctang-w2c.ch b/Build/source/texk/web2c/cwebdir/ctang-w2c.ch index 9f8136d9ac2..3397c8a4856 100644 --- a/Build/source/texk/web2c/cwebdir/ctang-w2c.ch +++ b/Build/source/texk/web2c/cwebdir/ctang-w2c.ch @@ -778,20 +778,20 @@ if((C_file=fopen(C_file_name,"r"))!=NULL) { @ @<Set up the comparison of temporary output@>= char x[BUFSIZ],y[BUFSIZ]; - int x_size,y_size,comparison; + int x_size,y_size,comparison=false; if((check_file=fopen(check_file_name,"r"))==NULL) fatal(_("! Cannot open output file "),check_file_name); @.Cannot open output file@> - @<Compare the temporary output to the previous output@>@; + if (temporary_output) @<Compare the temporary output...@>@; fclose(C_file); C_file=NULL; fclose(check_file); check_file=NULL; @ We hope that this runs fast on most systems. -@<Compare the temp...@>= +@<Compare the temporary output to the previous output@>= do { x_size = fread(x,1,BUFSIZ,C_file); y_size = fread(y,1,BUFSIZ,check_file); |