summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/ctangleboot.cin
diff options
context:
space:
mode:
authorAndreas Scherer <andreas_tex@freenet.de>2020-04-10 11:14:07 +0000
committerAndreas Scherer <andreas_tex@freenet.de>2020-04-10 11:14:07 +0000
commit9ebef863fbd274ccc04480e1f12b7ce385c739c8 (patch)
treea1ce3d49bc55a3f819f5cae68eaa5abc0bcbf686 /Build/source/texk/web2c/ctangleboot.cin
parentffb1a15162aabae2a564f442f4041b4f4f1766d7 (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/ctangleboot.cin')
-rw-r--r--Build/source/texk/web2c/ctangleboot.cin13
1 files changed, 7 insertions, 6 deletions
diff --git a/Build/source/texk/web2c/ctangleboot.cin b/Build/source/texk/web2c/ctangleboot.cin
index e6c504fe49d..83f928c8e12 100644
--- a/Build/source/texk/web2c/ctangleboot.cin
+++ b/Build/source/texk/web2c/ctangleboot.cin
@@ -100,6 +100,7 @@
#define show_banner flags['b']
#define show_progress flags['p']
#define show_happiness flags['h']
+#define temporary_output flags['t']
#define make_xrefs flags['x'] \
#define update_terminal fflush(stdout)
@@ -264,14 +265,14 @@ extern boolean change_pending;
extern boolean print_where;
/*:12*//*13:*/
-#line 200 "cwebdir/comm-w2c.h"
+#line 201 "cwebdir/comm-w2c.h"
extern int argc;
extern char**argv;
extern boolean flags[];
/*:13*//*14:*/
-#line 212 "cwebdir/comm-w2c.h"
+#line 213 "cwebdir/comm-w2c.h"
extern FILE*C_file;
extern FILE*tex_file;
@@ -281,7 +282,7 @@ extern FILE*check_file;
extern FILE*active_file;
/*:14*//*15:*/
-#line 222 "cwebdir/comm-w2c.h"
+#line 223 "cwebdir/comm-w2c.h"
extern void common_init(void);
extern void print_stats(void);
@@ -763,13 +764,13 @@ if((C_file= fopen(C_file_name,"r"))!=NULL){
#line 779 "cwebdir/ctang-w2c.ch"
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);
-/*100:*/
+if(temporary_output)/*100:*/
#line 794 "cwebdir/ctang-w2c.ch"
do{
@@ -837,7 +838,7 @@ if((check_file= fopen(check_file_name,"r"))==NULL)
fatal(_("! Cannot open output file "),check_file_name);
-/*100:*/
+if(temporary_output)/*100:*/
#line 794 "cwebdir/ctang-w2c.ch"
do{