Fred Moyer
Fri, 20 Jun 2008 17:11:40 -0700
Hacking away on this some more. http://people.apache.org/~phred/Apache-Bootstrap-0.02.tar.gzAs I tested this out with Apache::Dispatch today, I came to the realization that Apache::Bootstrap itself must be bootstrapped in the Makefile.PL. Here's how I did it in Apache::Dispatch, parts ripped off from ExtUtil::MakeMaker. I'm still fuzzy on the details of how not to cause CPAN testers failures.
Any thoughts here welcome - still bootstrapping this (no pun intended :)
BEGIN {
my $AB_VER = 0.02;
my $fail_msg = "Warning: prerequisite Apache::Bootstrap $AB_VER not
found.";
eval { require Apache::Bootstrap };
die $fail_msg . "\n" if $@;
die $fail_msg . " We have $Apache::Bootstrap::VERSION.\n"
if $Apache::Bootstrap::VERSION < $AB_VER;
}
... some code
my $mp_gen = Apache::Bootstrap->satisfy_mp_generation(2);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]