summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/mft.ch
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2012-07-16 07:27:23 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2012-07-16 07:27:23 +0000
commit2f6e1cc9e4c3f899a4142cbdf44e6fc10af0d32b (patch)
tree6ca7032c7cce84a2826dc9105b9aaf479800b561 /Build/source/texk/web2c/mft.ch
parent41e050122555719daad3bc3da47e3d559e39c42f (diff)
texk/*: Pass known program names as arg2 to kpse_set_program_name()
git-svn-id: svn://tug.org/texlive/trunk@27073 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/mft.ch')
-rw-r--r--Build/source/texk/web2c/mft.ch17
1 files changed, 12 insertions, 5 deletions
diff --git a/Build/source/texk/web2c/mft.ch b/Build/source/texk/web2c/mft.ch
index 70f3a7016ba..9f028aba5de 100644
--- a/Build/source/texk/web2c/mft.ch
+++ b/Build/source/texk/web2c/mft.ch
@@ -36,6 +36,13 @@ been developed in January, 1980.
Changes for \MP\ by W.~Bzyl in July, 2001.
@z
+@x [2] Define my_name
+@d banner=='This is MFT, Version 2.0'
+@y
+@d my_name=='mft'
+@d banner=='This is MFT, Version 2.0'
+@z
+
% [3] No need for the final label in C.
% AIX defines `class' in <math.h>, so let's take this opportunity to
% define that away.
@@ -59,7 +66,7 @@ procedure initialize;
procedure initialize;
var @<Local variables for initialization@>@/
begin
- kpse_set_program_name (argv[0], nil);
+ kpse_set_program_name (argv[0], my_name);
parse_arguments;
@<Set initial values@>;
@z
@@ -1090,7 +1097,7 @@ begin
{End of arguments; we exit the loop below.} ;
end else if getopt_return_val = "?" then begin
- usage ('mft');
+ usage (my_name);
end else if argument_is ('help') then begin
usage_help (MFT_HELP, nil);
@@ -1106,7 +1113,7 @@ begin
end else if argument_is ('style') then begin
if (n_style_name = max_style_name) then begin
fatal_error ('Too many style files specified.');
- usage ('mft');
+ usage (my_name);
end;
style_name[n_style_name] := extend_filename (optarg, 'mft');
n_style_name := n_style_name + 1;
@@ -1117,8 +1124,8 @@ begin
{Now |optind| is the index of first non-option on the command line.
We must have exactly one remaining argument.}
if (optind + 1 <> argc) then begin
- write_ln (stderr, 'mft: Need exactly one file argument.');
- usage ('mft');
+ write_ln (stderr, my_name, ': Need exactly one file argument.');
+ usage (my_name);
end;
suffix := find_suffix (cmdline (optind));