List of sample Build::Module Build.PL
List of sample Build::Module Build.PL
am 08.05.2007 00:49:00 von bumrecordingstudios
Hi,
I'm using Module::Build to create a install program for a Perl tool
which has a .pm, .cgi and folder of .tmpl files.
So far I've success with getting the .pm and .cgi files to install,
and I've got the template folder to copy to blib but I've had no
success with getting that template folder (using dat_files) to copy to
the correct path after.
I feel I'm fairly close but missing one minor thing. I didn't write a
specific function, related to the dat files, as the files need no
processing, only to be copied to a live folder.
I'm having a bit of trouble finding examples for this; is there a list
of CPAN modules that makes use of Module::Build so that I could take a
look at the Build.PL in hopes of getting a better grasp on how non-
standard files are installed with the module?
Thanks!
Drew Krakowski
Re: List of sample Build::Module Build.PL
am 08.05.2007 04:35:55 von Sisyphus
wrote in message
..
..
>
> I feel I'm fairly close but missing one minor thing. I didn't write a
> specific function, related to the dat files, as the files need no
> processing, only to be copied to a live folder.
>
See the section "Adding new file types to the build process" in 'perldoc
Module::Build::Cookbook' - it might help (though I'm not sure what you mean
by a "live folder").
Cheers,
Rob
Re: List of sample Build::Module Build.PL
am 08.05.2007 17:54:17 von bumrecordingstudios
Hi Rob, thanks for the reply.
'live' folder just means the path in /mnt/net or /usr/local... (can't
recall which), which is where the templates get written after they are
temporarily copied into /blib (which incidentally they are copied in
the correct structure).
I've gone through the cookbook, and done those required tasks, I've
made the dat_files, and then used add_build_element. So I assume I'm
just missing something that forces the module to copy the template
files from /blib to the final location.
Cheers!
Drew
> > I feel I'm fairly close but missing one minor thing. I didn't write a
> > specific function, related to the dat files, as the files need no
> > processing, only to be copied to a live folder.
>
> See the section "Adding new file types to the build process" in 'perldoc
> Module::Build::Cookbook' - it might help (though I'm not sure what you mean
> by a "live folder").
Re: List of sample Build::Module Build.PL
am 09.05.2007 02:55:30 von Sisyphus
wrote in message
news:1178639657.653484.226230@y80g2000hsf.googlegroups.com.. .
> Hi Rob, thanks for the reply.
>
> 'live' folder just means the path in /mnt/net or /usr/local... (can't
> recall which), which is where the templates get written after they are
> temporarily copied into /blib (which incidentally they are copied in
> the correct structure).
>
> I've gone through the cookbook, and done those required tasks, I've
> made the dat_files, and then used add_build_element. So I assume I'm
> just missing something that forces the module to copy the template
> files from /blib to the final location.
>
The section I referred to assumes that your dat files are going into perl's
lib directory. If they're destined for a different location then that's
covered in the "Adding new elements to the install process" section. Still
..... I guess you've been through that one, too.
If you're satisifed that the cookbook is not covering the process correctly,
then you could submit a bug report to
http://rt.cpan.org/Public/Dist/Display.html?Name=Module-Buil d .
I see there's a Module::Build mailing list (
http://lists.cpan.org/showlist.cgi?name=module-build-general ) - perhaps
there's some good help available there.
Sorry - beyond that I can't really help. ( I avoid Module::Build wherever
possible.)
Cheers,
Rob
Re: List of sample Build::Module Build.PL
am 10.05.2007 20:16:42 von bumrecordingstudios
ah well, thanks for your help anyway.
time to migrate to a different list.
Cheers!
Drew