Making files executable

2010-02-16 Thread Alberto Simões
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. With build install th

Re: Making files executable

2010-02-16 Thread Michael G Schwern
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

Re: Making files executable

2010-02-16 Thread Alberto Simões
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

Re: Making files executable

2010-02-16 Thread Alberto Simões
On 16/02/2010 20:42, Alberto Simões wrote: > 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 thes

Re: Making files executable

2010-02-16 Thread David Golden
2010/2/16 Alberto Simões : > OK, because there isn't a $builder->binary_files option or a > $builder->executable_files option :P Long, sordid history here. This is more or less correct as a summary of it: * Used to have a 'scripts' property that defaulted to the 'scripts' directory in the distri

Re: Making files executable

2010-02-16 Thread Alberto Simões
Hello. On 16/02/2010 21:12, David Golden wrote: > Clear as mud, right? Yeah :-| > So what you need to do is probably follow the "Adding new file types > to the build process" recipe in the Module::Build::Cookbook and add a > "bin" type with a process_bin_files that puts things in blib/bin -- > t

Re: Making files executable

2010-02-16 Thread David Golden
2010/2/16 Alberto Simões : > Interested in a patch to add bin_files to Module::Build? > (not sure if I will be able to write it but I offer to try...) I'd discuss the logic on the list first. On the one hand, I like it, but on the other hand, explaining that "script_files" means the "bin/" direct