Re: MakeMaker: Strip *.pl extension during install?
[email protected] (Michael G Schwern)
| Newsgroups | perl.makemaker |
|---|---|
| Message-ID | <[email protected]> |
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. You could hack something together using PL_FILES but I'd recommend against trying to hack it in as mysterious changing filenames are no fun to debug. Your impulse to strip the .pl extension off executables is correct. I suggest you just rename the source files and change your perl finding program to look for #!/usr/bin/perl or to run everything in bin/ that doesn't have an extension. Don't bother trying to hack this up with find + grep, use File::Find. Using Unix find in your tests is non-portable. -- The interface should be as clean as newly fallen snow and its behavior as explicit as Japanese eel porn.