summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c84bb14)
raw | patch | inline | side by side (parent: c84bb14)
author | Brandon Casey <casey@nrlssc.navy.mil> | |
Tue, 22 Jul 2008 21:15:41 +0000 (16:15 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 25 Jul 2008 07:08:56 +0000 (00:08 -0700) |
The perl modules must be copied to blib/lib so they are available for
testing.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
testing.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
perl/Makefile | patch | blob | history |
diff --git a/perl/Makefile b/perl/Makefile
index 5e079ad01126845c39fd9583fa742f54d5658b49..b8547db2c64ac1242725b5f71fb646b5bca38ef3 100644 (file)
--- a/perl/Makefile
+++ b/perl/Makefile
ifdef NO_PERL_MAKEMAKER
instdir_SQ = $(subst ','\'',$(prefix)/lib)
$(makfile): ../GIT-CFLAGS Makefile
- echo all: > $@
- echo ' :' >> $@
+ echo all: private-Error.pm Git.pm > $@
+ echo ' mkdir -p blib/lib' >> $@
+ echo ' $(RM) blib/lib/Git.pm; cp Git.pm blib/lib/' >> $@
+ echo ' $(RM) blib/lib/Error.pm' >> $@
+ '$(PERL_PATH_SQ)' -MError -e 'exit($$Error::VERSION < 0.15009)' || \
+ echo ' cp private-Error.pm blib/lib/Error.pm' >> $@
echo install: >> $@
echo ' mkdir -p $(instdir_SQ)' >> $@
echo ' $(RM) $(instdir_SQ)/Git.pm; cp Git.pm $(instdir_SQ)' >> $@
- echo ' $(RM) $(instdir_SQ)/Error.pm; \
- cp private-Error.pm $(instdir_SQ)/Error.pm' >> $@
+ echo ' $(RM) $(instdir_SQ)/Error.pm' >> $@
+ '$(PERL_PATH_SQ)' -MError -e 'exit($$Error::VERSION < 0.15009)' || \
+ echo ' cp private-Error.pm $(instdir_SQ)/Error.pm' >> $@
echo instlibdir: >> $@
echo ' echo $(instdir_SQ)' >> $@
else