summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2015-06-14 02:06:42 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2015-06-14 02:06:42 +0000
commit6d2532b801bcb84dc61fdca9a54d9d4b7d739aba (patch)
tree66fa830a28ce4a3f10444cc349d5e58c49cc296e /Build
parent58aef9b7a41615714ee11fc90d43ec6855b8a9e4 (diff)
web2c/lib/texmfmp.c: Reset program names for mflua-nowin and mfluajit-nowin.
git-svn-id: svn://tug.org/texlive/trunk@37517 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/web2c/lib/texmfmp.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/lib/texmfmp.c b/Build/source/texk/web2c/lib/texmfmp.c
index a2ec1986b63..069cc638110 100644
--- a/Build/source/texk/web2c/lib/texmfmp.c
+++ b/Build/source/texk/web2c/lib/texmfmp.c
@@ -730,9 +730,20 @@ maininit (int ac, string *av)
kpse_set_program_name (argv[0], user_progname);
#endif
+#if defined(MF)
/* If the program name is "mf-nowin", then reset the name as "mf". */
if (strncasecmp (kpse_invocation_name, "mf-nowin", 8) == 0)
kpse_reset_program_name ("mf");
+#if defined(MFLua)
+ /* If the program name is "mflua-nowin", then reset the name as "mflua". */
+ if (strncasecmp (kpse_invocation_name, "mflua-nowin", 11) == 0)
+ kpse_reset_program_name ("mflua");
+#elif defined(MFLuaJIT)
+ /* If the program name is "mfluajit-nowin", then reset the name as "mfluajit". */
+ if (strncasecmp (kpse_invocation_name, "mfluajit-nowin", 14) == 0)
+ kpse_reset_program_name ("mfluajit");
+#endif
+#endif
/* FIXME: gather engine names in a single spot. */
xputenv ("engine", TEXMFENGINENAME);