From 2f6e1cc9e4c3f899a4142cbdf44e6fc10af0d32b Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Mon, 16 Jul 2012 07:27:23 +0000 Subject: 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 --- Build/source/texk/web2c/pktogf.ch | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'Build/source/texk/web2c/pktogf.ch') diff --git a/Build/source/texk/web2c/pktogf.ch b/Build/source/texk/web2c/pktogf.ch index 3639d1ba80c..a8115b12e21 100644 --- a/Build/source/texk/web2c/pktogf.ch +++ b/Build/source/texk/web2c/pktogf.ch @@ -20,6 +20,13 @@ \def\title{PK$\,$\lowercase{to}$\,$GF changes for C} @z +@x [1] Define my_name +@d banner=='This is PKtoGF, Version 1.1' +@y +@d my_name=='pktogf' +@d banner=='This is PKtoGF, Version 1.1' +@z + @x [4] No global labels. @ Both the input and output come from binary files. On line interaction is handled through \PASCAL's standard |input| and |output| files. @@ -52,7 +59,7 @@ procedure initialize; {this procedure gets things started properly} procedure initialize; {this procedure gets things started properly} var i:integer; {loop index for initializations} begin - kpse_set_program_name (argv[0], nil); + kpse_set_program_name (argv[0], my_name); kpse_init_prog ('PKTOGF', 0, nil, nil); parse_arguments; print_ln(banner);@/ @@ -454,7 +461,7 @@ begin {End of arguments; we exit the loop below.} ; end else if getopt_return_val = "?" then begin - usage ('pktogf'); + usage (my_name); end else if argument_is ('help') then begin usage_help (PKTOGF_HELP, nil); @@ -468,8 +475,8 @@ begin {Now |optind| is the index of first non-option on the command line. We must have one or two remaining arguments.} if (optind + 1 <> argc) and (optind + 2 <> argc) then begin - write_ln (stderr, 'pktogf: Need one or two file arguments.'); - usage ('pktogf'); + write_ln (stderr, my_name, ': Need one or two file arguments.'); + usage (my_name); end; end; -- cgit v1.2.3