From 9ebef863fbd274ccc04480e1f12b7ce385c739c8 Mon Sep 17 00:00:00 2001 From: Andreas Scherer Date: Fri, 10 Apr 2020 11:14:07 +0000 Subject: [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 --- Build/source/texk/web2c/cwebdir/ctwill-w2c.ch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Build/source/texk/web2c/cwebdir/ctwill-w2c.ch') diff --git a/Build/source/texk/web2c/cwebdir/ctwill-w2c.ch b/Build/source/texk/web2c/cwebdir/ctwill-w2c.ch index 4434b9a4f51..2dde67b3ee0 100644 --- a/Build/source/texk/web2c/cwebdir/ctwill-w2c.ch +++ b/Build/source/texk/web2c/cwebdir/ctwill-w2c.ch @@ -3163,13 +3163,13 @@ be found in the program \.{NUWEB} by Preston Briggs, to whom credit is due. @= if((tex_file=fopen(tex_file_name,"r"))!=NULL) { 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@> - @@; + if (temporary_output) @@; fclose(tex_file); tex_file=NULL; fclose(check_file); check_file=NULL; @@ -3182,7 +3182,7 @@ strcpy(check_file_name,""); /* We want to get rid of the temporary file */ @ We hope that this runs fast on most systems. -@= +@= do { x_size = fread(x,1,BUFSIZ,tex_file); y_size = fread(y,1,BUFSIZ,check_file); -- cgit v1.2.3