aboutsummaryrefslogtreecommitdiff
path: root/perl/Makefile.PL
diff options
context:
space:
mode:
authorMichael G. Schwern <schwern@pobox.com>2012-07-24 20:21:09 -0700
committerEric Wong <normalperson@yhbt.net>2012-07-27 22:13:25 +0000
commit4c8e5c55c2a2125bb3b6a06c1cd0d4415fac0016 (patch)
tree5483e8f25721b9ed06f67c6aba0c3ddbaac5d564 /perl/Makefile.PL
parentcdd159b2f56c9e69e37bbb8f5af301abd93e5407 (diff)
downloadgit-4c8e5c55c2a2125bb3b6a06c1cd0d4415fac0016.tar.gz
git-4c8e5c55c2a2125bb3b6a06c1cd0d4415fac0016.tar.xz
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>
Diffstat (limited to 'perl/Makefile.PL')
-rw-r--r--perl/Makefile.PL3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl/Makefile.PL b/perl/Makefile.PL
index b54b04a61..87e1f62ff 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';