Re: Making files executable
Michael G Schwern <[email protected]> Tue, 16 Feb 2010 12:19:40 -0800
| Newsgroups | gmane.comp.lang.perl.modules.module-build |
|---|---|
| Message-ID | <[email protected]> |
Alberto Simões wrote:
> Dear MB users,
>
> How can I force a file to be executable?
> 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.
> 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?
--
52. Not allowed to yell "Take that Cobra" at the rifle range.
-- The 213 Things Skippy Is No Longer Allowed To Do In The U.S. Army
http://skippyslist.com/list/