diff options
-rw-r--r-- | Build/source/texk/web2c/luatexdir/ChangeLog | 6 | ||||
-rw-r--r-- | Build/source/texk/web2c/luatexdir/lua/lkpselib.c | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/luatexdir/ChangeLog b/Build/source/texk/web2c/luatexdir/ChangeLog index 95c6fc2174b..22abc020877 100644 --- a/Build/source/texk/web2c/luatexdir/ChangeLog +++ b/Build/source/texk/web2c/luatexdir/ChangeLog @@ -1,5 +1,11 @@ 2012-05-22 Taco Hoekwater <taco@luatex.org> + * lua/lkpselib.c: new function kpse.default_texmfcnf() that + reports the value of DEFAULT_TEXMFCNF, for the benefit of + context mkiv on Debian. + +2012-05-22 Taco Hoekwater <taco@luatex.org> + * luafontloader/fontforge/fontforge/splinesave.c, luafontloader/fontforge/fontforge/splinefont.h: drop parts of the Type1 saving routines (unused) to remove a compiler warning. diff --git a/Build/source/texk/web2c/luatexdir/lua/lkpselib.c b/Build/source/texk/web2c/luatexdir/lua/lkpselib.c index ae0ca3d11f1..11283167ec0 100644 --- a/Build/source/texk/web2c/luatexdir/lua/lkpselib.c +++ b/Build/source/texk/web2c/luatexdir/lua/lkpselib.c @@ -26,6 +26,7 @@ #include <kpathsea/pathsearch.h> #include <kpathsea/str-list.h> #include <kpathsea/tex-file.h> +#include <kpathsea/paths.h> static const char _svn_version[] = "$Id: lkpselib.c 4020 2010-11-30 13:43:25Z taco $ $URL: http://foundry.supelec.fr/svn/luatex/tags/beta-0.66.0/source/texk/web2c/luatexdir/lua/lkpselib.c $"; @@ -240,6 +241,12 @@ static int lua_kpathsea_find_file(lua_State * L) } +static int show_texmfcnf(lua_State * L) +{ + lua_pushstring(L, DEFAULT_TEXMFCNF); + return 1; +} + static int show_path(lua_State * L) { int op = luaL_checkoption(L, -1, "tex", filetypenames); @@ -806,6 +813,7 @@ static const struct luaL_reg kpselib_m[] = { {"show_path", lua_kpathsea_show_path}, {"lookup", lua_kpathsea_lookup}, {"version", lua_kpse_version}, + {"default_texmfcnf", show_texmfcnf}, {NULL, NULL} /* sentinel */ }; @@ -822,6 +830,7 @@ static const struct luaL_reg kpselib_l[] = { {"show_path", show_path}, {"lookup", lua_kpse_lookup}, {"version", lua_kpse_version}, + {"default_texmfcnf", show_texmfcnf}, {NULL, NULL} /* sentinel */ }; |