diff options
author | Hartmut Henkel <hartmut_henkel@gmx.de> | 2007-01-11 00:32:19 +0000 |
---|---|---|
committer | Hartmut Henkel <hartmut_henkel@gmx.de> | 2007-01-11 00:32:19 +0000 |
commit | 1b8ce908c1f14ad191fa7d28e4a5e4b141af358b (patch) | |
tree | 9cdfafb45a58fa15564c5c849a399eaf562eb1c6 /Build/source/texk/kpathsea/cnf.c | |
parent | 3fc66be038004f4b65b09a585106eb6b9552d02c (diff) |
If the engine is put into a place from where no texmf.cnf can be found,
give a hint to the user like this:
warning: Couldn't find texmf.cnf in any of these directories:
/home/user:/home:/:/home/user/share/texmf-local/web2c:/home/share/texmf-local/web2c://share/texmf-local/web2c:/home/user/texmf-local/web2c:/home/texmf-local/web2c://texmf-local/web2c:/home/user/share/texmf/web2c:/home/share/texmf/web2c://share/texmf/web2c:/home/user/texmf/web2c:/home/texmf/web2c://texmf/web2c:/.:/usr/local/teTeX/share/texmf/web2c:/usr/local/teTeX/share/texmf/web2c
Trying to proceed...
Often this new warning will precede the following warning:
! You have to increase POOLSIZE.
which was rather misleading before.
git-svn-id: svn://tug.org/texlive/trunk@3321 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/cnf.c')
-rw-r--r-- | Build/source/texk/kpathsea/cnf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Build/source/texk/kpathsea/cnf.c b/Build/source/texk/kpathsea/cnf.c index 982495bde48..394b4630506 100644 --- a/Build/source/texk/kpathsea/cnf.c +++ b/Build/source/texk/kpathsea/cnf.c @@ -162,7 +162,7 @@ read_all_cnf P1H(void) cnf_hash = hash_create (CNF_HASH_SIZE); cnf_files = kpse_all_path_search (cnf_path, CNF_NAME); - if (cnf_files) { + if (cnf_files && *cnf_files) { for (cnf = cnf_files; *cnf; cnf++) { string line; FILE *cnf_file = xfopen (*cnf, FOPEN_R_MODE); @@ -197,7 +197,8 @@ read_all_cnf P1H(void) free (*cnf); } free (cnf_files); - } + } else + WARNING1 ("Couldn't find file texmf.cnf in any of these directories:\n%s\nTrying to proceed...", cnf_path); } /* Read the cnf files on the first call. Return the first value in the |