[Module-build-general] Fwd: [PATCH] Build handles .PL files in bin/
Status: Beta
Brought to you by:
kwilliams
|
From: Ken W. <ke...@ma...> - 2003-03-24 14:43:09
|
Begin forwarded message:
> From: Casey West <ca...@ge...>
> Date: Sun Mar 23, 2003 3:24:15 PM US/Central
> To: ke...@ma...
> Subject: [PATCH] Build handles .PL files in bin/
>
> I'm in need of having Module::Build handle .PL files in bin/. So the
> patch below allows this, but we should probably be able to give a list
> of directories under which .PL files will be built. But as for
> defaults, lib/ and bin/ are most logical.
>
> I need this for poest, btw. And other distributions with just
> executable files that I want to use Module::Build for, sometime in the
> future, when it works all the way. :-)
>
> But for poest, I distribute lots of modules and one executable which
> needs to be built on the fly.
>
> --- lib/Module/Build.pm.orig Sun Mar 23 15:42:22 2003
> +++ lib/Module/Build.pm Sun Mar 23 15:44:01 2003
> @@ -656,12 +656,12 @@
> (probably the same one that built perl itself) for this to work
> properly.
>
> -The C<build> action also runs any C<.PL> files in your F<lib/>
> -directory. Typically these create other files, named the same but
> -without the C<.PL> ending. For example, a file F<lib/Foo/Bar.pm.PL>
> -could create the file F<lib/Foo/Bar.pm>. The C<.PL> files are
> -processed first, so any C<.pm> files (or other kinds that we deal
> -with) will get copied correctly.
> +The C<build> action also runs any C<.PL> files in your F<lib/> and
> +F<bin/> directories. Typically these create other files, named the
> +same but without the C<.PL> ending. For example, a file
> +F<lib/Foo/Bar.pm.PL> could create the file F<lib/Foo/Bar.pm>. The
> +C<.PL> files are processed first, so any C<.pm> files (or other kinds
> +that we deal with) will get copied correctly.
>
> If your C<.PL> scripts don't create any files, or if they create files
> with unexpected names, or even if they create multiple files, you
> --- lib/Module/Build/Base.pm.orig Sun Mar 23 16:17:46 2003
> +++ lib/Module/Build/Base.pm Sun Mar 23 15:41:15 2003
> @@ -682,6 +682,7 @@
> # Currently we handle .pm, .xs, .pod, and .PL files.
>
> $self->process_PL_files('lib');
> + $self->process_PL_files('bin');
>
> my $blib = 'blib';
> $self->add_to_cleanup($blib);
>
>
> Casey West
>
> --
> "When passenger of foot heave in sight, tootle the horn. Trumpet him
> melodiously at first, but if he still obstacles your passage then
> tootle him with vigor."
> --From a brochure of a car rental firm in Tokyo
>
>
-Ken
|