summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael G. Schwern <schwern@pobox.com>2012-07-25 03:21:09 (GMT)
committerEric Wong <normalperson@yhbt.net>2012-07-27 22:13:25 (GMT)
commit4c8e5c55c2a2125bb3b6a06c1cd0d4415fac0016 (patch)
tree5483e8f25721b9ed06f67c6aba0c3ddbaac5d564
parentcdd159b2f56c9e69e37bbb8f5af301abd93e5407 (diff)
downloadgit-4c8e5c55c2a2125bb3b6a06c1cd0d4415fac0016.zip
git-4c8e5c55c2a2125bb3b6a06c1cd0d4415fac0016.tar.gz
git-4c8e5c55c2a2125bb3b6a06c1cd0d4415fac0016.tar.bz2
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.PL3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl/Makefile.PL b/perl/Makefile.PL
index b54b04a..87e1f62 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';