summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaco Hoekwater <taco@elvenkind.com>2011-05-13 07:24:32 +0000
committerTaco Hoekwater <taco@elvenkind.com>2011-05-13 07:24:32 +0000
commitf6337a80de00e0eacdfe1a8c98b0096b49fea034 (patch)
tree35590e561ba461d0069267f0b0ba46329d1d6038
parent4eded144b17f1a72d47ba4710b64806ab8825788 (diff)
change 'dvitomp' program name handling
git-svn-id: svn://tug.org/texlive/trunk@22453 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/web2c/mplibdir/ChangeLog4
-rw-r--r--Build/source/texk/web2c/mplibdir/mpost.w6
2 files changed, 8 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/mplibdir/ChangeLog b/Build/source/texk/web2c/mplibdir/ChangeLog
index b20a07a9631..d131cb763f9 100644
--- a/Build/source/texk/web2c/mplibdir/ChangeLog
+++ b/Build/source/texk/web2c/mplibdir/ChangeLog
@@ -1,3 +1,7 @@
+2011-05-13 Taco Hoekwater <taco@luatex.org>
+ * mpost.w (main): change setting of kpse program name
+ (on a hint by PEB).
+
2011-05-09 Taco Hoekwater <taco@luatex.org>
* mpxout.w (mpx_in_TFM): close tfm files.
diff --git a/Build/source/texk/web2c/mplibdir/mpost.w b/Build/source/texk/web2c/mplibdir/mpost.w
index eb92253f361..89cf33a0d67 100644
--- a/Build/source/texk/web2c/mplibdir/mpost.w
+++ b/Build/source/texk/web2c/mplibdir/mpost.w
@@ -1240,8 +1240,10 @@ int main (int argc, char **argv) { /* |start_here| */
if (dvi == NULL) {
@<Show short help and exit@>;
} else {
- if (!nokpse)
- kpse_set_program_name("dvitomp", user_progname);
+ if (!nokpse) {
+ kpse_set_program_name(argv[0],
+ user_progname ? user_progname : "dvitomp");
+ }
exit (mpost_run_dvitomp(dvi, mpx));
}
}