Browse Source

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>
maint
Michael G. Schwern 12 years ago committed by Eric Wong
parent
commit
4c8e5c55c2
  1. 3
      perl/Makefile.PL

3
perl/Makefile.PL

@ -6,7 +6,8 @@ use Getopt::Long; @@ -6,7 +6,8 @@ use Getopt::Long;
# Sanity: die at first unknown option
Getopt::Long::Configure qw/ pass_through /;

GetOptions("localedir=s" => \my $localedir);
my $localedir = '';
GetOptions("localedir=s" => \$localedir);

sub MY::postamble {
return <<'MAKE_FRAG';

Loading…
Cancel
Save