Jari Aalto wrote:
> Michael G Schwern <[EMAIL PROTECTED]> writes:
> 
>> Jari Aalto wrote:
>>>     WriteMakefile ( EXE_FILES => [qw(bin/dyndns.pl)] );
>>>
>>> I'm using Perl 5.10.0. Is there any option that could be set to strip
>>> the file extensions during install? I'd like to develop the files with:
>>>
>>>     foo.pl
>>>
>>> So that local searches like "find . -name "*.pl" can run "perl -cw".
>>> tests. But during install I'd wish they got instaled as plain:
>>>
>>>     /usr/local/bin/foo
>>>
>>> Likewise for the manual page: without the *.pl"
>> No, there's no option to do that. ...
>> I suggest you just rename the source files...
> 
> While possible[*], the stripping option would be great to have in next
> release of MakeMaker. I hope to see it added.

Like I said, it's not a good idea to have a source file named one thing and an
installed file named something else.  It's not worth the trouble both inside
and outside MakeMaker.  Sorry.

Besides, like Nick said, no new features are going into MakeMaker.
You can probably get what you want by overriding ACTION_install() in
Module::Build.  Or by using PL_FILES which I suggested before.


> [*] It's just *.pl, it also *.sh and other files included. The file
> editors use *.extension to detect types and many tools rely on
> extensions, so removing them is not a good situation.

Good tools are smart enough to look for the #! line.  emacs does.  vim does.
I suggest you sharpen your basic tools.


-- 
On error resume stupid

Reply via email to