Re: Making files executable
Alberto Simões <[email protected]> Tue, 16 Feb 2010 20:42:55 +0000
| Newsgroups | gmane.comp.lang.perl.modules.module-build |
|---|---|
| Organization | Departamento de Informática - Universi dade do Minho |
| Message-ID | <[email protected]> |
Hellow On 16/02/2010 20:19, Michael G Schwern wrote: >> It is a binary that is shipped in the distribution (yes, I know about >> portability. not relevant atm), that is marked as executable. In a >> MyBuild.pm process_*_files function I copy these files to the >> blib/scripts folder. > > Binaries go into blib/bin. It shouldn't cause your problem putting a > binary into script, but it might cause subtle problems down the road. OK, then need to check why scripts is being created instead of bin. >> With build install these files get installed in the correct place... >> >> ...but they lose the execution bit. > > Are you using copy_if_modified? It should preserve the executable bit. > Is the bit being lost when its copied to blib/scripts or when its > installed? Was using copy from file::copy. chmod would be an option, but I do not like the idea :) Thanks Alberto -- Alberto Simões