stas 2003/11/06 16:56:32
Modified: . Makefile.PL Log: a workaround for MakeMaker < 6.11, where $(ECHO) wasn't available (use perl -le 'print shift') Revision Changes Path 1.130 +22 -12 modperl-2.0/Makefile.PL Index: Makefile.PL =================================================================== RCS file: /home/cvs/modperl-2.0/Makefile.PL,v retrieving revision 1.129 retrieving revision 1.130 diff -u -u -r1.129 -r1.130 --- Makefile.PL 5 Nov 2003 09:52:18 -0000 1.129 +++ Makefile.PL 7 Nov 2003 00:56:31 -0000 1.130 @@ -464,19 +464,29 @@ modperl_src_clean: cd "$(MODPERL_SRC)" && $(MODPERL_LIBMAKE) clean +EOF + + # $(ECHO) was broken before 6.10_01 + # XXX: if ever require 6.11 we can remove this workaround + require ExtUtils::MakeMaker; + my $say = ExtUtils::MakeMaker->VERSION > 6.10 + ? '@$(ECHO)' + : '@$(PERL) -le "print shift"'; + + $string .= <<"EOF"; modperl_banner: - @$(ECHO) "+--------------------------------------------------------------+" - @$(ECHO) "| |" - @$(ECHO) "| For details on getting started with mod_perl 2, see: |" - @$(ECHO) "| |" - @$(ECHO) "| http://perl.apache.org/docs/2.0/user/intro/start_fast.html |" - @$(ECHO) "| |" - @$(ECHO) "| |" - @$(ECHO) "| Found a bug? File a bug report: |" - @$(ECHO) "| |" - @$(ECHO) "| http://perl.apache.org/bugs/ |" - @$(ECHO) "| |" - @$(ECHO) "+--------------------------------------------------------------+" + $say "+--------------------------------------------------------------+" + $say "| |" + $say "| For details on getting started with mod_perl 2, see: |" + $say "| |" + $say "| http://perl.apache.org/docs/2.0/user/intro/start_fast.html |" + $say "| |" + $say "| |" + $say "| Found a bug? File a bug report: |" + $say "| |" + $say "| http://perl.apache.org/bugs/ |" + $say "| |" + $say "+--------------------------------------------------------------+" EOF