diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-01-07 12:07:12 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-01-07 12:07:12 +0000 |
commit | 1c2a7c6d12cd8d1cb6ca50cd0a71d2a1605fc4d4 (patch) | |
tree | 4117cd024fa1de1fd9f28aa9050b2c8b6e7f5f0f /Build/source/texk/web2c/omegafonts | |
parent | 9e12f984a50b65e418bec2d5f33536d5857e8d95 (diff) |
Reorganize build system for TeX & MF engines
No more sed substitutions for *extra.[ch], they are now distributed
and #include lib/texmfmp.c resp. the generated */*_version.h
git-svn-id: svn://tug.org/texlive/trunk@20964 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 | 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 = |