diff options
author | Taco Hoekwater <taco@elvenkind.com> | 2012-05-23 12:06:23 +0000 |
---|---|---|
committer | Taco Hoekwater <taco@elvenkind.com> | 2012-05-23 12:06:23 +0000 |
commit | 7a47d3a252e27289fbff42de71dd7c4a22a1873a (patch) | |
tree | 580a19e96bdfd290fdd9d3f9339e120d244614b0 | |
parent | cd8b2f4856c397a0c98fed733c30f8bef43a40f5 (diff) |
add kpse.default_texmfcnf() to the kpse library
git-svn-id: svn://tug.org/texlive/trunk@26594 c570f23f-e606-0410-a88d-b1316a301751
-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 */ }; |