ConvertCocoa64: spaces in filename problem
ConvertCocoa64: spaces in filename problem
- Subject: ConvertCocoa64: spaces in filename problem
- From: "A.M." <email@hidden>
- Date: Mon, 11 Jan 2010 10:56:55 -0500
On this page:
http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/Cocoa64BitGuide/ConvertingExistingApp/ConvertingExistingApp.html#//apple_ref/doc/uid/TP40004247-CH5-SW5
Apple suggests using:
/Developer/Extras/64BitConversion/ConvertCocoa64 `find . -name '*.[hm]' | xargs`
However, that combination of "xargs" and "find" fails to account for filenames with elements that need to be escaped, such as spaces. You may not notice that the utility didn't process such files because the ruby script prints a line for each file, effectively hiding the errors.
A better incantation is:
find . -name '*.[hm]' -print0| xargs -0 /Developer/Extras/64BitConversion/ConvertCocoa64
Cheers,
M_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden