path: root/perl/Makefile.PL
diff options
authorPetr Baudis <>2006-06-24 02:34:40 (GMT)
committerJunio C Hamano <>2006-07-03 00:14:40 (GMT)
commit5c4082fd687bd0784d3a4d96550e8afab332b63a (patch)
tree39c355a1e31aac3ef3fdd0c1abb20b4fd4e82055 /perl/Makefile.PL
parent63df97ae7baeedc3ce04995139fa0f6bc5eea76c (diff)
Add to the distribution
I have been thinking about how to do the error reporting the best way and after scraping various overcomplicated concepts, I have decided that by far the most elegant way is to throw Error exceptions; the closest sane alternative is to catch the dies in by enclosing the calls in eval{}s and that's really _quite_ ugly. The only "small" trouble is that turns out sadly not to be part of the standard distribution, and installation from CPAN is a bother, especially if you can't install it system-wide. But since it is very small, I've decided to just bundle it. Signed-off-by: Petr Baudis <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'perl/Makefile.PL')
1 files changed, 10 insertions, 0 deletions
diff --git a/perl/Makefile.PL b/perl/Makefile.PL
index dd61056..54e8b20 100644
--- a/perl/Makefile.PL
+++ b/perl/Makefile.PL
@@ -8,9 +8,19 @@ instlibdir:
+my %pm = ('' => '$(INST_LIBDIR)/');
+# We come with our own bundled It's not in the set of default
+# Perl modules so install it if it's not available on the system yet.
+eval { require 'Error' };
+if ($@) {
+ $pm{''} = '$(INST_LIBDIR)/';
NAME => 'Git',
+ PM => \%pm,
MYEXTLIB => '../libgit.a',
INC => '-I. -I..',