Re: Module::Build question

2010-02-18 Thread David Golden
On Thu, Feb 18, 2010 at 7:04 AM, Nicholas Clark wrote: > On Thu, Feb 18, 2010 at 12:00:23PM +, David Cantrell wrote: >> On Thu, Feb 18, 2010 at 11:24:24AM +, Nicholas Clark wrote: >> > On Wed, Feb 17, 2010 at 08:44:57AM -0800, macke...@animalhead.com wrote: >> > > $^X is simpler, and simpl

Re: Module::Build question

2010-02-18 Thread Nicholas Clark
On Thu, Feb 18, 2010 at 12:00:23PM +, David Cantrell wrote: > On Thu, Feb 18, 2010 at 11:24:24AM +, Nicholas Clark wrote: > > On Wed, Feb 17, 2010 at 08:44:57AM -0800, macke...@animalhead.com wrote: > > > $^X is simpler, and simpler solutions are preferable. > > > Can it be wrong? > > Yes.

Re: Module::Build question

2010-02-18 Thread David Cantrell
On Thu, Feb 18, 2010 at 11:24:24AM +, Nicholas Clark wrote: > On Wed, Feb 17, 2010 at 08:44:57AM -0800, macke...@animalhead.com wrote: > > $^X is simpler, and simpler solutions are preferable. > > Can it be wrong? > Yes. > For starters, it may be a relative path, and the program has already cha

Re: Module::Build question

2010-02-18 Thread Nicholas Clark
On Wed, Feb 17, 2010 at 08:44:57AM -0800, macke...@animalhead.com wrote: > $^X is simpler, and simpler solutions are preferable. > Can it be wrong? Yes. For starters, it may be a relative path, and the program has already changed directory. As $^X originates from argv[0] in main(), it's also poss

Re: Module::Build question

2010-02-18 Thread mackenna
$^X is simpler, and simpler solutions are preferable. Can it be wrong? cmac On Feb 17, 2010, at 4:02 AM, David Cantrell wrote: On Tue, Feb 16, 2010 at 06:47:25PM -0800, cr...@animalhead.com wrote: So I would like to add some tests to one of my test files, involving something like `perl -c s

Re: Module::Build question

2010-02-17 Thread David Cantrell
On Tue, Feb 16, 2010 at 06:47:25PM -0800, cr...@animalhead.com wrote: > So I would like to add some tests to one of my test files, > involving something like `perl -c scripts/my_script`, and > fail if there's an error. > > My question is: where under M::B can I get the path to the > perl under wh

Re: Module::Build question

2010-02-17 Thread Aldo Calpini
cr...@animalhead.com wrote: Q: How can a test program tell if it's running in verbose mode? you don't. use note($message) from Test::More to output things that should be seen only in verbose mode. cheers, Aldo

Re: Module::Build question

2010-02-16 Thread craig
Thanks Jonathan, Test::Script would have filled the bill nicely if it didn't have so many dependencies. I have aborted installations for having than many! So I ended up with the following, which works fine in my test program: my $build = Module::Build->current(); my $tail = $build->is_unixish(

Re: Module::Build question

2010-02-16 Thread Jonathan Yu
Hi there, Thanks for your contribution to CPAN. > So I would like to add some tests to one of my test files, > involving something like `perl -c scripts/my_script`, and > fail if there's an error. There is a module for this - Test::Script - which can be integrated into your test suite. > > My qu

Module::Build question

2010-02-16 Thread craig
Recently I submitted IP::World, my first module using M::B. I think that the standard install process does not syntax check Perl scripts in a scripts folder. Is that right? So I would like to add some tests to one of my test files, involving something like `perl -c scripts/my_script`, and fail i

Re: Module::Build Question: Installing Templates in a user-specifiable directory

2005-09-21 Thread Ken Williams
On Sep 21, 2005, at 8:57 AM, David Baird wrote: My understanding is that you can say $builder->config_data( templates_dir => $whatever_tt_inc_returned ); and MB will build and install My::PackageName::ConfigData, which can be loaded and queried for the config setting. My::PackageName::ConfigD

Re: Module::Build Question: Installing Templates in a user-specifiable directory

2005-09-21 Thread David Baird
On 9/21/05, Randy W. Sims <[EMAIL PROTECTED]> wrote: > Shlomi Fish wrote: > > Hi all! > > Hi Shlomi, > > Sorry for the delayed response. > [ snip ] Spooky. This is *precisely* what I've been trying to figure out today, for a Maypole distribution. > Hmm, MB has some support for creating a custom

Re: Module::Build Question: Installing Templates in a user-specifiable directory

2005-09-21 Thread Shlomi Fish
Hi Randy! Thanks for your help. Regards, Shlomi Fish On Wednesday 21 September 2005 14:07, Randy W. Sims wrote: > Shlomi Fish wrote: > > Hi all! > > Hi Shlomi, > > Sorry for the delayed response. [SNIPPED.] > > Regards, > Randy.

Re: Module::Build Question: Installing Templates in a user-specifiable directory

2005-09-21 Thread Randy W. Sims
Shlomi Fish wrote: Hi all! Hi Shlomi, Sorry for the delayed response. I've written a module using Module::Build and CGI::Application. I'm using several Template Toolkit templates all placed in one directory. (placed inside the module tree under "./templates/"). I'm setting this template di

Module::Build Question: Installing Templates in a user-specifiable directory

2005-09-18 Thread Shlomi Fish
Hi all! I've written a module using Module::Build and CGI::Application. I'm using several Template Toolkit templates all placed in one directory. (placed inside the module tree under "./templates/"). I'm setting this template directory to the default TT search path using "$self->tt_include_path