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/omegafonts | |
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/omegafonts')
-rw-r--r-- | Build/source/texk/web2c/omegafonts/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/web2c/omegafonts/omfonts.c | 11 |
2 files changed, 9 insertions, 6 deletions
diff --git a/Build/source/texk/web2c/omegafonts/ChangeLog b/Build/source/texk/web2c/omegafonts/ChangeLog index 7bcd9e1635d..6809118e740 100644 --- a/Build/source/texk/web2c/omegafonts/ChangeLog +++ b/Build/source/texk/web2c/omegafonts/ChangeLog @@ -1,3 +1,7 @@ +2013-07-05 Peter Breitenlohner <peb@mppmu.mpg.de> + + * omfonts.c (main): Use kpse_program_basename(). + 2013-06-28 Peter Breitenlohner <peb@mppmu.mpg.de> * pl-lexer.l: Add '#include <kpathsea/c-memstr.h>' for strlen(). diff --git a/Build/source/texk/web2c/omegafonts/omfonts.c b/Build/source/texk/web2c/omegafonts/omfonts.c index bd9b2e60395..afd94cff68f 100644 --- a/Build/source/texk/web2c/omegafonts/omfonts.c +++ b/Build/source/texk/web2c/omegafonts/omfonts.c @@ -122,15 +122,14 @@ main (int argc, string *argv) int getopt_return_val; int option_index = 0; - name_program = xbasename(argv[0]); -#define PROG_IS(s) !strcasecmp(name_program, s) || !strcasecmp(name_program, s ".exe") - if (PROG_IS("ofm2opl")) + name_program = kpse_program_basename(argv[0]); + if (FILESTRCASEEQ(name_program, "ofm2opl")) program = PROG_OFM2OPL; - else if (PROG_IS("opl2ofm")) + else if (FILESTRCASEEQ(name_program, "opl2ofm")) program = PROG_OPL2OFM; - else if (PROG_IS("ovf2ovp")) + else if (FILESTRCASEEQ(name_program, "ovf2ovp")) program = PROG_OVF2OVP; - else if (PROG_IS("ovp2ovf")) + else if (FILESTRCASEEQ(name_program, "ovp2ovf")) program = PROG_OVP2OVF; else program = PROG_OMFONTS; |