From 7a47d3a252e27289fbff42de71dd7c4a22a1873a Mon Sep 17 00:00:00 2001 From: Taco Hoekwater Date: Wed, 23 May 2012 12:06:23 +0000 Subject: add kpse.default_texmfcnf() to the kpse library git-svn-id: svn://tug.org/texlive/trunk@26594 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/luatexdir/ChangeLog | 6 ++++++ Build/source/texk/web2c/luatexdir/lua/lkpselib.c | 9 +++++++++ 2 files changed, 15 insertions(+) (limited to 'Build/source') 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,3 +1,9 @@ +2012-05-22 Taco Hoekwater + + * 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 * luafontloader/fontforge/fontforge/splinesave.c, 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 #include #include +#include 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 */ }; -- cgit v1.2.3