[metapost] [tex-live] mpost output file name
Akira Kakuto
kakuto at fuk.kindai.ac.jp
Wed Sep 30 08:35:39 CEST 2009
> Forwarding (with babelfish in action) a report from fctt about the mpost in TL'09.
>
> With foo.bar.mp as input, current mpost (version 1.207) use foo.1 as output
> file, while, reportedly, previous versions used to pick foo.bar.1.
>
> Is this new behaviour intended?
It seems to be intended. The following patch will recover the
old behavior:
--- mp.w.orig Wed Sep 30 15:19:52 2009
+++ mp.w Wed Sep 30 15:29:34 2009
@@ -16498,7 +16498,11 @@
char *s = mp->job_name+strlen(mp->job_name);
while (s>mp->job_name) {
if (*s == '.') {
- *s = '\0';
+ if(strcasecmp(s, ".mp") == 0 || strcasecmp(s, ".mem") == 0 ||
+ strcasecmp(s, ".mf") == 0) {
+ *s = '\0';
+ break;
+ }
}
s--;
}
Best regards,
Akira
More information about the metapost
mailing list