diff options
-rw-r--r-- | Build/source/texk/kpathsea/ChangeLog | 3 | ||||
-rw-r--r-- | Build/source/texk/kpathsea/kpathsea.texi | 9 | ||||
-rw-r--r-- | Build/source/texk/kpathsea/kpsewhich.c | 7 |
3 files changed, 16 insertions, 3 deletions
diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog index b16fca6267a..fd415048c16 100644 --- a/Build/source/texk/kpathsea/ChangeLog +++ b/Build/source/texk/kpathsea/ChangeLog @@ -1,5 +1,8 @@ 2007-05-05 Karl Berry <karl@tug.org> + * kpsewhich.c (find_format): hardware kpse_dvips_config_format for + config.ps. + * texmf.in (TEXMFMAIN, TEXMFDIST, TEXMFLOCAL, TEXMFSYSVAR, TEXMFSYSCONFIG, VARTEXFONTS, MIMELIBDIR, MAILCAPLIBDIR, TEXMFNCF): use @texmf@ etc. expansions so that (hopefully) diff --git a/Build/source/texk/kpathsea/kpathsea.texi b/Build/source/texk/kpathsea/kpathsea.texi index d0a2045a69d..b70e7cd6e25 100644 --- a/Build/source/texk/kpathsea/kpathsea.texi +++ b/Build/source/texk/kpathsea/kpathsea.texi @@ -1090,6 +1090,15 @@ with no associated suffix. For example, for Dvips configuration files you can use @samp{--format="dvips config"}. (The quotes are for the sake of the shell.) +@flindex config.ps +@flindex pdftex.cfg +@flindex pdftexconfig.tex +When the filename being searched for is @file{config.ps}, the format +is automatically switched to @samp{dvips config}. Similarly, when the +filename is @file{pdftex.cfg}, the format is switched to @samp{pdftex +config} (although @file{pdftex.cfg} is not used any more; look for +@file{pdftexconfig.tex} instead.) + Here's the current list of recognized names and the associated suffixes. @xref{Supported file formats}, for more information on each of these. @example diff --git a/Build/source/texk/kpathsea/kpsewhich.c b/Build/source/texk/kpathsea/kpsewhich.c index 1f79588e890..c1a2930dcae 100644 --- a/Build/source/texk/kpathsea/kpsewhich.c +++ b/Build/source/texk/kpathsea/kpsewhich.c @@ -1,7 +1,7 @@ /* kpsewhich -- standalone path lookup and variable expansion for Kpathsea. - Ideas from Thomas Esser and Pierre MacKay. + Ideas from Thomas Esser, Pierre MacKay, and many others. - Copyright (C) 1995 - 2005 Karl Berry & Olaf Weber. + Copyright (C) 1995-2007 Karl Berry & Olaf Weber. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -16,7 +16,6 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ #include <kpathsea/config.h> @@ -99,6 +98,8 @@ find_format P2C(string, name, boolean, is_filename) ret = user_format; } else if (FILESTRCASEEQ (name, "pdftex.cfg")) { ret = kpse_pdftex_config_format; + } else if (FILESTRCASEEQ (name, "config.ps")) { + ret = kpse_dvips_config_format; } else { int f; /* kpse_file_format_type */ unsigned name_len = strlen (name); |