1
0
mirror of https://git.savannah.gnu.org/git/coreutils.git synced 2026-11-03 19:12:42 +03:00

($program_name): Define.

(main): Use $program_name, rather than long-inaccurate `build-script'.
This commit is contained in:
Jim Meyering
2001-08-12 17:37:18 +00:00
parent 105f262769
commit bdf06b6060

View File

@@ -10,6 +10,8 @@ require 5.002;
use strict;
use POSIX qw (assert);
(my $program_name = $0) =~ s|.*/||;
BEGIN { push @INC, '.' if '.' ne '.'; }
use Test;
@@ -214,7 +216,7 @@ sub wrap
print <<EOF1;
#! /bin/sh
# This script was generated automatically by build-script.
# This script was generated automatically by $program_name.
case \$# in
0\) xx='$xx';;
*\) xx="\$1";;