2008/11/12 Michael G Schwern <[EMAIL PROTECTED]>: > 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.
You are being OS centric here. Sorry to say. Good tools on *nix are smart enough to look for the *nix specific shebang line. Good tools on OS'es where file type is handled other ways DONT, and shouldnt be expected to. And shouldnt be thought less of if they don't. Using shebang for this stuff is actually quite suboptimal from the point of view of searching anyway, as it means you can't scan directory listings alone, but instead have to open every goddamned file to see what it does. Try that over a network share or NFS and have fun watching the paint dry. Nonetheless I agree, removing the .pl is bound to cause more problems than its worth. Yves -- perl -Mre=debug -e "/just|another|perl|hacker/"