• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
ConvertCocoa64: spaces in filename problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: ConvertCocoa64: spaces in filename problem
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: [MEET] Columbia, MD CocoaHeads - Tuesday, Jan 12th
  • Next by Date: Re: if statement causing 32 Byte leak?
  • Previous by thread: [MEET] Columbia, MD CocoaHeads - Tuesday, Jan 12th
  • Next by thread: Re: ConvertCocoa64: spaces in filename problem
  • Index(es):
    • Date
    • Thread