[tex-live] shell_escape extension patch
Akira Kakuto
kakuto at fsci.fuk.kindai.ac.jp
Sat Jun 17 09:45:03 CEST 2006
Hi Karl, Taco,
> I did that (rev 1688), modulo a tiny bit of reformatting and using
> strchr instead of index :). I also made a note to include this in this
> year's news.
If texmfmp.c is changed as follows, as I said before,
Taco's shell-escape extension works for all "TeX" programs.
Of course related
#if defined(pdfTeX) || defined(pdfeTeX)
should be replaced by
#if defined(TeX).
I think this change is not harmful.
Best regard,
Akira
--- texmfmp.c.orig Sat Jun 17 08:53:28 2006
+++ texmfmp.c Sat Jun 17 16:23:19 2006
@@ -1221,6 +1221,9 @@
*f_ptr = NULL;
fname = (string)xmalloc(strlen(nameoffile+1));
strcpy(fname,nameoffile+1);
+#if !defined(pdfTeX) && !defined(pdfeTeX)
+ fullnameoffile = xstrdup(fname);
+#endif
*f_ptr = popen(fname+1,"r");
free(fname);
for (i=0; i<=15; i++) {
@@ -1229,6 +1232,9 @@
break;
}
}
+#if !defined(pdfTeX) && !defined(pdfeTeX)
+ if(fullnameoffile) free(fullnameoffile);
+#endif
if (*f_ptr)
setvbuf (*f_ptr,(char *)NULL,_IOLBF,0);
More information about the tex-live
mailing list