summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/omegafonts/omfonts.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2011-01-07 12:07:12 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2011-01-07 12:07:12 +0000
commit1c2a7c6d12cd8d1cb6ca50cd0a71d2a1605fc4d4 (patch)
tree4117cd024fa1de1fd9f28aa9050b2c8b6e7f5f0f /Build/source/texk/web2c/omegafonts/omfonts.c
parent9e12f984a50b65e418bec2d5f33536d5857e8d95 (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/omfonts.c')
-rw-r--r--Build/source/texk/web2c/omegafonts/omfonts.c16
1 files changed, 6 insertions, 10 deletions
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 =