diff options
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 | 16 |
2 files changed, 10 insertions, 10 deletions
diff --git a/Build/source/texk/web2c/omegafonts/ChangeLog b/Build/source/texk/web2c/omegafonts/ChangeLog index 798393b2cad..76c6321ffb4 100644 --- a/Build/source/texk/web2c/omegafonts/ChangeLog +++ b/Build/source/texk/web2c/omegafonts/ChangeLog @@ -1,3 +1,7 @@ +2010-12-30 Peter Breitenlohner <peb@mppmu.mpg.de> + + * omfonts.c: Check for argv[0] with .exe via strcasecmp(). + 2010-06-16 Peter Breitenlohner <peb@mppmu.mpg.de> * char_routines.c (ensure_existence): Avoid OpenBSD Bus error diff --git a/Build/source/texk/web2c/omegafonts/omfonts.c b/Build/source/texk/web2c/omegafonts/omfonts.c index 5a6ec0a6c4e..971b640ccbe 100644 --- a/Build/source/texk/web2c/omegafonts/omfonts.c +++ b/Build/source/texk/web2c/omegafonts/omfonts.c @@ -123,21 +123,17 @@ main (int argc, string *argv) int option_index = 0; name_program = xbasename(argv[0]); - if (!strcmp(name_program, "ofm2opl") || - !strcmp(name_program, "OFM2OPL.EXE")) { +#define PROG_IS(s) !strcmp(name_program, s) || !strcasecmp(name_program, s ".exe") + if (PROG_IS("ofm2opl")) program = PROG_OFM2OPL; - } else if (!strcmp(name_program, "opl2ofm") || - !strcmp(name_program, "OPL2OFM.EXE")) { + else if (PROG_IS("opl2ofm")) program = PROG_OPL2OFM; - } else if (!strcmp(name_program, "ovf2ovp") || - !strcmp(name_program, "OVF2OVP.EXE")) { + else if (PROG_IS("ovf2ovp")) program = PROG_OVF2OVP; - } else if (!strcmp(name_program, "ovp2ovf") || - !strcmp(name_program, "OVP2OVF.EXE")) { + else if (PROG_IS("ovp2ovf")) program = PROG_OVP2OVF; - } else { + else program = PROG_OMFONTS; - } do { getopt_return_val = |