summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/cwebdir
diff options
context:
space:
mode:
authorAndreas Scherer <andreas_tex@freenet.de>2020-06-06 14:34:02 +0000
committerAndreas Scherer <andreas_tex@freenet.de>2020-06-06 14:34:02 +0000
commitd4c10a5ed1107e22a6d1c3bc96d9b8a15e0184a4 (patch)
tree2a320e16ee3caa5c78522b2f30073cb8d32029b5 /Build/source/texk/web2c/cwebdir
parent6377034bc2a0509db4195adef08a3de6cc7c45c3 (diff)
[CWEB] Add index entries for the CWEBINPUTS envvar.
git-svn-id: svn://tug.org/texlive/trunk@55433 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/cwebdir')
-rw-r--r--Build/source/texk/web2c/cwebdir/ChangeLog4
-rw-r--r--Build/source/texk/web2c/cwebdir/comm-w2c.ch9
2 files changed, 13 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/cwebdir/ChangeLog b/Build/source/texk/web2c/cwebdir/ChangeLog
index 79b89554b66..3a9005f41de 100644
--- a/Build/source/texk/web2c/cwebdir/ChangeLog
+++ b/Build/source/texk/web2c/cwebdir/ChangeLog
@@ -1,3 +1,7 @@
+2020-06-06 Andreas Scherer <https://ascherer.github.io>
+
+ * comm-w2c.ch: Add index entries for the CWEBINPUTS envvar.
+
2020-06-05 Andreas Scherer <https://ascherer.github.io>
* comm-w2c.ch: Fix newline blunder in case of error.
diff --git a/Build/source/texk/web2c/cwebdir/comm-w2c.ch b/Build/source/texk/web2c/cwebdir/comm-w2c.ch
index 34b92c1e6e2..f3cd1bbad9d 100644
--- a/Build/source/texk/web2c/cwebdir/comm-w2c.ch
+++ b/Build/source/texk/web2c/cwebdir/comm-w2c.ch
@@ -333,6 +333,7 @@ double quotes.
The actual file lookup is done with the help of the \Kpathsea/ library;
see section~\X90:File lookup with \Kpathsea/\X~for details. % FIXME
The remainder of the \.{@@i} line after the file name is ignored.
+@^system dependencies@> @.CWEBINPUTS@>
@z
@x
@@ -348,6 +349,12 @@ The remainder of the \.{@@i} line after the file name is ignored.
@z
@x
+@ @<Try to open...@>= {
+@y
+@ @.CWEBINPUTS@>@<Try to open...@>= {
+@z
+
+@x
char temp_file_name[max_file_name_length];
char *cur_file_name_end=cur_file_name+max_file_name_length-1;
char *k=cur_file_name, *kk;
@@ -1334,6 +1341,7 @@ The directories to be searched for come from three sources:
\item{(c)} compile-time default directories (specified in
\.{texmf.in}),\hfil\break
i.e., \.{\$TEXMFDOTDIR:\$TEXMF/texmf/cweb//}.\par}
+@.CWEBINPUTS@>
@d kpse_find_cweb(name) kpse_find_file(name,kpse_cweb_format,true)
@@ -1351,6 +1359,7 @@ typedef bool boolean;
\.{CWEBINPUTS.cweb} is present in \.{texmf.cnf} (or \.{CWEBINPUTS\_cweb}
in the environment) its value will be used as the search path for filenames.
This allows different flavors of \.{CWEB} to have different search paths.
+@.CWEBINPUTS@>
@<Set up |PROGNAME| feature and initialize the search path mechanism@>=
kpse_set_program_name(argv[0], "cweb");