From: Gurusamy Sarathy Date: Sun, 23 Jan 2000 09:24:40 +0000 (+0000) Subject: add PREREQ_PM to default template (suggested by Michael G Schwern X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8bc03d0d6d6040fd681d4592ecfb6fe75ed53524;p=p5sagit%2Fp5-mst-13.2.git add PREREQ_PM to default template (suggested by Michael G Schwern ) p4raw-id: //depot/perl@4854 --- diff --git a/utils/h2xs.PL b/utils/h2xs.PL index cbeffb4..76e2d65 100644 --- a/utils/h2xs.PL +++ b/utils/h2xs.PL @@ -1290,19 +1290,22 @@ EOP warn "Writing $ext$modpname/Makefile.PL\n"; open(PL, ">Makefile.PL") || die "Can't create $ext$modpname/Makefile.PL: $!\n"; -print PL <<'END'; +print PL < '$module', + 'VERSION_FROM' => '$modfname.pm', # finds \$VERSION + 'PREREQ_PM' => {}, # e.g., Module::Name => 1.1 END -print PL "WriteMakefile(\n"; -print PL " 'NAME' => '$module',\n"; -print PL " 'VERSION_FROM' => '$modfname.pm', # finds \$VERSION\n"; -if( ! $opt_X ){ # print C stuff, unless XS is disabled +if (!$opt_X) { # print C stuff, unless XS is disabled $opt_F = '' unless defined $opt_F; - print PL " 'LIBS' => ['$extralibs'], # e.g., '-lm' \n"; - print PL " 'DEFINE' => '$opt_F', # e.g., '-DHAVE_SOMETHING' \n"; - print PL " 'INC' => '', # e.g., '-I/usr/include/other' \n"; + print PL < ['$extralibs'], # e.g., '-lm' + 'DEFINE' => '$opt_F', # e.g., '-DHAVE_SOMETHING' + 'INC' => '', # e.g., '-I/usr/include/other' +END } print PL ");\n"; close(PL) || die "Can't close $ext$modpname/Makefile.PL: $!\n";