[NTG-pdftex] pdfinitex != pdftex --ini?

Hartmut Henkel hartmut_henkel@gmx.de
Sat, 20 Mar 2004 23:53:18 +0100 (CET)


To match more ini-names, here is a quick'n dirty kludge in texmfmp.c:

--- /usr/local/src/tex/pdftex-1.20a-rc1/src/texk/web2c/lib/texmfmp.c	Mon Mar  8 22:47:26 2004
+++ texmfmp.c	Sat Mar 20 23:38:48 2004
@@ -200,6 +208,18 @@
   if (readyalready != 314159) {
     /* The `ini_version' variable is declared/used in the change files.  */
     boolean virversion = false;
+#if defined(pdfTeX) || defined(pdfeTeX)
+    int i;
+    char *pdf_ini_prognames[] = INI_PROGRAMS;
+    char *pdf_vir_prognames[] = VIR_PROGRAMS;
+    for(i = 0; *pdf_ini_prognames[i] != 0; i++)
+      if (FILESTRCASEEQ (kpse_program_name, pdf_ini_prognames[i]))
+        iniversion = true;
+    for(i = 0; *pdf_vir_prognames[i] != 0; i++)
+      if (FILESTRCASEEQ (kpse_program_name, pdf_vir_prognames[i]))
+        virversion = true;
+    /* this is once again checked below, don't mind */
+#endif
     if (FILESTRCASEEQ (kpse_program_name, INI_PROGRAM)) {
       iniversion = true;
     } else if (FILESTRCASEEQ (kpse_program_name, VIR_PROGRAM)) {

and in both pdftexextra.h and pdfetexextra.h I have added:

#define INI_PROGRAMS {"pdfinitex", "pdfinietex", "pdfeinitex", "inipdftex", "inipdfetex", ""}
#define VIR_PROGRAMS {"pdfvirtex", "pdfviretex", "pdfevirtex", "virpdftex", "virpdfetex", ""}

Then it seems to get into ini-mode when called by the right name. Or,
more simple, just search for a ini/vir substring in the name?

Shouldn't one add something like this?

Regards, Hartmut