summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/tex-file.c
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-07-05 17:00:42 +0000
committerKarl Berry <karl@freefriends.org>2007-07-05 17:00:42 +0000
commit933f3b40572f708ed33db95ab820cbd1c9105831 (patch)
tree362a8ba5198752728cd091eaf00c386f41b80ac0 /Build/source/texk/kpathsea/tex-file.c
parent6631dfca2c81c3da849c7500219b685b3b205e8e (diff)
define kpse_lua_format for Hans and Taco
git-svn-id: svn://tug.org/texlive/trunk@4549 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/tex-file.c')
-rw-r--r--Build/source/texk/kpathsea/tex-file.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/Build/source/texk/kpathsea/tex-file.c b/Build/source/texk/kpathsea/tex-file.c
index 8e57d440fa1..d12712caee2 100644
--- a/Build/source/texk/kpathsea/tex-file.c
+++ b/Build/source/texk/kpathsea/tex-file.c
@@ -1,7 +1,7 @@
/* tex-file.c: high-level file searching by format.
+ Copyright 1993, 1994, 1995, 1996, 1997, 2007 Karl Berry.
Copyright 1998-2005 Olaf Weber.
- Copyright 1993, 94, 95, 96, 97 Karl Berry.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -93,6 +93,7 @@ kpse_format_info_type kpse_format_info[kpse_last_format];
#define PDFTEXCONFIG_ENVS "PDFTEXCONFIG"
#define LIG_ENVS "LIGFONTS", "TEXFONTS"
#define TEXMFSCRIPTS_ENVS "TEXMFSCRIPTS"
+#define LUA_ENVS "LUAINPUTS"
/* The compiled-in default list, DEFAULT_FONT_SIZES, is intended to be
set from the command line (presumably via the Makefile). */
@@ -670,6 +671,11 @@ kpse_init_format P1C(kpse_file_format_type, format)
case kpse_texmfscripts_format:
INIT_FORMAT ("texmfscripts", DEFAULT_TEXMFSCRIPTS, TEXMFSCRIPTS_ENVS);
break;
+ case kpse_lua_format:
+ INIT_FORMAT ("luatex", DEFAULT_LUAINPUTS, LUA_ENVS);
+#define LUA_SUFFIXES ".lua", ".luatex", ".texlua", ".luc", ".luctex", ".texluc"
+ SUFFIXES (LUA_SUFFIXES);
+ break;
default:
FATAL1 ("kpse_init_format: Unknown format %d", format);
}