summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e6634ac)
raw | patch | inline | side by side (parent: e6634ac)
author | Petr Baudis <pasky@suse.cz> | |
Sat, 1 Jul 2006 23:48:32 +0000 (01:48 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 3 Jul 2006 00:14:44 +0000 (17:14 -0700) |
This makes us not include ppport.h which seems not to give us anything
real anyway; it is useful for checking for portability warts but since
Devel::PPPort is a portability wart itself, we shouldn't require it
for build. You can check for portability problems by calling make check
in perl/.
Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
real anyway; it is useful for checking for portability warts but since
Devel::PPPort is a portability wart itself, we shouldn't require it
for build. You can check for portability problems by calling make check
in perl/.
Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
perl/Git.xs | patch | blob | history | |
perl/Makefile.PL | patch | blob | history |
diff --git a/perl/Git.xs b/perl/Git.xs
index cb232618c8f4d87fd9dc177afff9c34af6ee3bdd..51bfac3bd52e0c76afc813ec88caafce3898c90d 100644 (file)
--- a/perl/Git.xs
+++ b/perl/Git.xs
#include "perl.h"
#include "XSUB.h"
-#include "ppport.h"
-
#undef die
diff --git a/perl/Makefile.PL b/perl/Makefile.PL
index 25ae54a5151143ceb8ed1710b034b8d072d8e91f..97ee9af9c9834d759c33b17bca7b66eaef200e4f 100644 (file)
--- a/perl/Makefile.PL
+++ b/perl/Makefile.PL
instlibdir:
@echo '$(INSTALLSITEARCH)'
+check:
+ perl -MDevel::PPPort -le 'Devel::PPPort::WriteFile(".ppport.h")' && \
+ perl .ppport.h --compat-version=5.6.0 Git.xs && \
+ rm .ppport.h
+
MAKE_FRAG
}
MYEXTLIB => '../libgit.a',
INC => '-I. -I..',
);
-
-
-use Devel::PPPort;
-
--s 'ppport.h' or Devel::PPPort::WriteFile();