[41224] trunk/dports/ruby/rb-cocoa

kimura wataru kimuraw at macports.org
Thu Oct 30 07:06:38 PDT 2008


Thanks Ryan and Toby,

I fixed rb-cocoa Portfile at r41309.

On Tue, 28 Oct 2008 17:58:52 -0500, Ryan Schmidt wrote:
>>> Could you change this to not use the cd command, please? The cd 
>>> command will
>>> not be available in MacPorts 1.7.0 and later. Try:
>>> 
>>> system "find ${worksrcpath} -type d -name '.svn' | xargs /bin/rm -rf"
>> 
>> Seems potentially dangerous if ${worksrcpath} happens to contain spaces
>> 
>> find ${worksrcpath} -type d -name '.svn' -exec rm -r '{}' \;
> 
> worksrcpaths containing spaces are pretty dangerous already, which is 
> why ports don't generally have them.
> 
> If you really need to support such paths, you'll need quotes around 
> the worksrcpath:
> 
> find "${worksrcpath}" -type d -name '.svn' -exec rm -r '{}' \;
> 
> Or the original way:
> 
> find "${worksrcpath}" -type d -name '.svn' -print0 | xargs -0 /bin/rm -rf
> 
> 


More information about the macports-dev mailing list