diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-07-16 07:27:23 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-07-16 07:27:23 +0000 |
commit | 2f6e1cc9e4c3f899a4142cbdf44e6fc10af0d32b (patch) | |
tree | 6ca7032c7cce84a2826dc9105b9aaf479800b561 /Build/source/texk/web2c/omegaware/ovp2ovf.ch | |
parent | 41e050122555719daad3bc3da47e3d559e39c42f (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/omegaware/ovp2ovf.ch')
-rw-r--r-- | Build/source/texk/web2c/omegaware/ovp2ovf.ch | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/omegaware/ovp2ovf.ch b/Build/source/texk/web2c/omegaware/ovp2ovf.ch index f390a4780ec..759ae090d58 100644 --- a/Build/source/texk/web2c/omegaware/ovp2ovf.ch +++ b/Build/source/texk/web2c/omegaware/ovp2ovf.ch @@ -15,6 +15,13 @@ %\def\title{OVP2OVF changes for C} @z +@x [1] Define my_name +@d banner=='This is OVP2OVF, Version 1.12' +@y +@d my_name=='ovp2ovf' +@d banner=='This is OVP2OVF, Version 1.12' +@z + @x [2] Print the banner later. procedure initialize; {this procedure gets things started properly} var @<Local variables for initialization@>@/ @@ -24,7 +31,7 @@ procedure initialize; {this procedure gets things started properly} procedure initialize; {this procedure gets things started properly} var @<Local variables for initialization@>@/ begin - kpse_set_program_name (argv[0], nil); + kpse_set_program_name (argv[0], my_name); parse_arguments; @z @@ -265,7 +272,7 @@ begin {End of arguments; we exit the loop below.} ; end else if getopt_return_val = "?" then begin - usage ('ovp2ovf'); {|getopt| has already given an error message.} + usage (my_name); {|getopt| has already given an error message.} end else if argument_is ('help') then begin usage_help (OVP2OVF_HELP, nil); @@ -281,8 +288,8 @@ begin We must have one to three remaining arguments.} if (optind + 1 <> argc) and (optind + 2 <> argc) and (optind + 3 <> argc) then begin - write_ln (stderr, 'ovp2ovf: Need one to three file arguments.'); - usage ('ovp2ovf'); + write_ln (stderr, my_name, ': Need one to three file arguments.'); + usage (my_name); end; vpl_name := extend_filename (cmdline (optind), 'ovp'); |