diff options
author | Taco Hoekwater <taco@elvenkind.com> | 2011-05-13 07:24:32 +0000 |
---|---|---|
committer | Taco Hoekwater <taco@elvenkind.com> | 2011-05-13 07:24:32 +0000 |
commit | f6337a80de00e0eacdfe1a8c98b0096b49fea034 (patch) | |
tree | 35590e561ba461d0069267f0b0ba46329d1d6038 /Build/source/texk/web2c/mplibdir/mpost.w | |
parent | 4eded144b17f1a72d47ba4710b64806ab8825788 (diff) |
change 'dvitomp' program name handling
git-svn-id: svn://tug.org/texlive/trunk@22453 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/mplibdir/mpost.w')
-rw-r--r-- | Build/source/texk/web2c/mplibdir/mpost.w | 6 |
1 files changed, 4 insertions, 2 deletions
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)); } } |