From: Jonathan Stowe Date: Sun, 4 Feb 2001 10:46:01 +0000 (+0000) Subject: Small usage change and author gueesing X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=65cf46c7f56f9fe500e3dca891f7b8f583c2e6fa;p=p5sagit%2Fp5-mst-13.2.git Small usage change and author gueesing Message-Id: p4raw-link: @8670 on //depot/perl: ac634a9a38fe527f538270bb24c9a19cd88f5947 p4raw-id: //depot/perl@8690 --- diff --git a/utils/h2xs.PL b/utils/h2xs.PL index 88ac482..896d05f 100644 --- a/utils/h2xs.PL +++ b/utils/h2xs.PL @@ -409,10 +409,12 @@ my @ARGS = @ARGV; my $compat_version = $]; use Getopt::Std; +use Config; -sub usage{ - warn "@_\n" if @_; - die "h2xs [-ACOPXacdfhkmx] [-F addflags] [-M fmask] [-n module_name] [-o tmask] [-p prefix] [-s subs] [-v version] [headerfile [extra_libraries]] +sub usage { + warn "@_\n" if @_; + die <))[0,6]; + $author =~ s/,.*$//; # in case of sub fields + my $domain = $Config{'mydomain'}; + $domain =~ s/^\.//; + $email = "$user\@$domain"; + }; + +$author ||= "A. U. Thor"; +$email ||= 'a.u.thor@a.galaxy.far.far.away'; my $revhist = ''; $revhist = <