Hi Guys
How many of you use makepl_args.mod_perl ? I have a
file handy with all the required options & I build a
static httpd with a single 'perl Makefile.PL'. I have
found this method very convenient. However, mod_perl
build currently requires that makepl_args.mod_perl is
present in one of
current, '..' or $ENV{HOME}. We source control the
makepl_args file in a global location & everytime I
have to copy this file to current directory for build.
It'd be nice if I can specify the location of this
file (& probably name too). It helps us in
maintenance.
I made a patch to achieve this. Comments ?
thx
Sreeji
------ BEGIN PATCH ----
*** Makefile.PL.org Mon Nov 3 23:09:47 2003
--- Makefile.PL Tue Nov 4 01:22:49 2003
***************
*** 193,198 ****
--- 193,199 ----
NONE => "",
);
+ $MAKEPL_ARGS_FILE = '';
$LIBPERL = "DEFAULT";
$USE_APACI = $USE_DSO = $USE_APXS = 0;
$WITH_APXS = "";
***************
*** 303,310 ****
my @mm_args;
{
my($fh,$file);
! for (qw(./ ../ ./. ../.), "$ENV{HOME}/.") {
! last if $fh = FileHandle->new($file =
$_."makepl_args.mod_perl");
}
if($fh) {
print "Reading Makefile.PL args from $file\n";
--- 304,315 ----
my @mm_args;
{
my($fh,$file);
! foreach (@ARGV) {
! $MAKEPL_ARGS_FILE = $1, last if
s/^MAKEPL_ARGS_FILE=(.*)//;
! }
! for ($MAKEPL_ARGS_FILE, qw(./ ../ ./. ../.),
"$ENV{HOME}/.") {
! $file = -d $_ ? $_ . "/makepl_args.mod_perl" :
$_;
! last if $fh = FileHandle->new($file);
}
if($fh) {
print "Reading Makefile.PL args from $file\n";
------- END PATCH -------
________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html