--- Stas Bekman <[EMAIL PROTECTED]> wrote: > Sreeji K > >>Why not do the simple: > >> > >>perl Makefile.PL `cat > >>/whereever/your/file/is/makepl_args.mod_perl` <snip> > > > Then I lose the flexibility of having comments & neat > formatting in the config. file. I'll have to escape > all the newlines. Also, this works only on Unices. > > This is not a problem with Perl :) Ofcourse not :-)
> % perl Makefile.PL `perl -l0ne '/^([^#\n\r]+)/ && > print "$1 "' > /whereever/your/file/is/makepl_args.mod_perl` > but write a script that will do the work for you. Am > I right? In which case Hm... Actually I manage the techstack for our development and production servers. The idea was we'll have a document & blindly following the document, anyone can manage the techstack (even those who don't have much idea about mod_perl/apache & other components). So we planned to 'source control' makepl_args. This can be modified only by few ppl. who know what it contain. Then we'll have a line in the doc. like: 'To build mod_perl cd modperl_dir && perl Makefile.PL MAKEPL_ARGS_FILE=<location_of_makepl_args> && make && ....' Currently the line is: cp /location/of/makepl_args/ <mod_perl_dir> ..other steps... Basically we wanted to avoid the 'cp' and cluttering of mod_perl dir. So I thought the simplest option is to have an option to take the filename. Ofcourse, I can write & source control a script or have patterns in the command line, but I'd consider the above process (simple copy) or an option to be the simplest :-) (We do not want anyone to accidentally modify makepl_args, as this can cause good amount of issues and would not be easy to track at times.) > The reason I'm trying to suggest an alternative > solution, is that most users will never use the option you suggest, so if we can avoid providing too > many options it's a goodness. Now I understand. Thanks. I sent this patch, because I thought there'd be many ppl. facing the same problem & this would be useful. Anyway, I would not insist if that's not the case. > Also if you are repeatedly updating your build, did > you know of this new mp2 > option: > > % perl -MApache::Build -e rebuild http://perl.apache.org/docs/2.0/user/install/install.html#Re_using_Configure_Options Yes. But I have never tried ('ts in mp1 ?). We rebuild when we upgrade mod_perl or apache or perl - so it's not that frequent. Thanks Sreeji ________________________________________________________________________ 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