Quiet warning if Makefile.PL is run with -w and no --localedir
Usually it isn't, but its nice if it can be run with warnings on. Signed-off-by: Michael G Schwern <schwern@pobox.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Eric Wong <normalperson@yhbt.net>
This commit is contained in:
parent
cdd159b2f5
commit
4c8e5c55c2
@ -6,7 +6,8 @@ use Getopt::Long;
|
|||||||
# Sanity: die at first unknown option
|
# Sanity: die at first unknown option
|
||||||
Getopt::Long::Configure qw/ pass_through /;
|
Getopt::Long::Configure qw/ pass_through /;
|
||||||
|
|
||||||
GetOptions("localedir=s" => \my $localedir);
|
my $localedir = '';
|
||||||
|
GetOptions("localedir=s" => \$localedir);
|
||||||
|
|
||||||
sub MY::postamble {
|
sub MY::postamble {
|
||||||
return <<'MAKE_FRAG';
|
return <<'MAKE_FRAG';
|
||||||
|
Loading…
Reference in New Issue
Block a user