diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-07-05 09:06:38 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-07-05 09:06:38 +0000 |
commit | cf1fc7b4d3f71633ca71e17dd7044722d19ceda4 (patch) | |
tree | 5ba3680df0c5362e3f3137ed207d76f70b745caf /Build/source/texk/web2c/mplibdir | |
parent | 1a6220d23fab3c902247d61da5771bfae9a2450c (diff) |
luatex, mpost, omfonts: Use kpse_program_basename()
git-svn-id: svn://tug.org/texlive/trunk@31094 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/mplibdir')
-rw-r--r-- | Build/source/texk/web2c/mplibdir/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/web2c/mplibdir/mpost.w | 14 |
2 files changed, 6 insertions, 12 deletions
diff --git a/Build/source/texk/web2c/mplibdir/ChangeLog b/Build/source/texk/web2c/mplibdir/ChangeLog index f701505055a..86c72ec9baa 100644 --- a/Build/source/texk/web2c/mplibdir/ChangeLog +++ b/Build/source/texk/web2c/mplibdir/ChangeLog @@ -1,3 +1,7 @@ +2013-07-05 Peter Breitenlohner <peb@mppmu.mpg.de> + + * mpost.w (main): Use kpse_program_basename(). + 2013-06-28 Peter Breitenlohner <peb@mppmu.mpg.de> * pngout.w: Replace index() => strchr(). diff --git a/Build/source/texk/web2c/mplibdir/mpost.w b/Build/source/texk/web2c/mplibdir/mpost.w index ae572e8bd41..a3f03409e12 100644 --- a/Build/source/texk/web2c/mplibdir/mpost.w +++ b/Build/source/texk/web2c/mplibdir/mpost.w @@ -1290,17 +1290,6 @@ extern __declspec(dllexport) int DLLPROC (int argc, char **argv); @ Now this is really it: \MP\ starts and ends here. @c -static char *cleaned_invocation_name(char *arg) -{ - char *ret, *dot; - const char *start = xbasename(arg); - ret = xstrdup(start); - dot = strrchr(ret, '.'); - if (dot != NULL) { - *dot = 0; /* chop */ - } - return ret; -} int #if defined(WIN32) && !defined(__MINGW32__) && defined(DLLPROC) DLLPROC (int argc, char **argv) @@ -1317,9 +1306,10 @@ main (int argc, char **argv) options->ini_version = (int)false; options->print_found_names = (int)true; { - const char *base = cleaned_invocation_name(argv[0]); + char *base = kpse_program_basename(argv[0]); if (FILESTRCASEEQ(base, "dvitomp")) dvitomp_only=1; + free(base); } if (dvitomp_only) { @<Read and set dvitomp command line options@>; |