diff options
author | Michael G. Schwern <schwern@pobox.com> | 2012-07-25 07:21:09 +0400 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2012-07-28 02:13:25 +0400 |
commit | 4c8e5c55c2a2125bb3b6a06c1cd0d4415fac0016 (patch) | |
tree | 5483e8f25721b9ed06f67c6aba0c3ddbaac5d564 | |
parent | cdd159b2f56c9e69e37bbb8f5af301abd93e5407 (diff) |
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>
-rw-r--r-- | perl/Makefile.PL | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl/Makefile.PL b/perl/Makefile.PL index b54b04a619..87e1f62ff8 100644 --- a/perl/Makefile.PL +++ b/perl/Makefile.PL @@ -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'; |