summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
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);