• 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
Re: Copy Headers that preserves subdirectory structure?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copy Headers that preserves subdirectory structure?


  • Subject: Re: Copy Headers that preserves subdirectory structure?
  • From: Greg Guerin <email@hidden>
  • Date: Fri, 12 Oct 2007 11:54:16 -0700

Mike Jackson wrote:

>echo 'SRCROOT:'${SRCROOT}
>cd ${SRCROOT}
>
>
># I have to move up a directory due to my layout.
>echo 'Copying Usul Headers into Framework..'
>cd ../
>for H in `find ./Usul -name "*.h"`;  do
>   echo ${H}
>   ditto ${H} ${BUILT_PRODUCTS_DIR}/${H}
>done

As given, the unquoted expansions may fail if any pathname contains
embedded whitespace, with possibly horrible consequences.  This is what
double-quotes are for.

Suggested minimum improvements:
  ...
  cd "${SRCROOT}"
  ...
    echo "${H}"
    ditto "${H}" "${BUILT_PRODUCTS_DIR}/${H}"

  -- GG


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Copy Headers that preserves subdirectory structure?
      • From: Mike Jackson <email@hidden>
  • Prev by Date: Re: Copy Headers that preserves subdirectory structure?
  • Next by Date: Re: Copy Headers that preserves subdirectory structure?
  • Previous by thread: Re: Copy Headers that preserves subdirectory structure?
  • Next by thread: Re: Copy Headers that preserves subdirectory structure?
  • Index(es):
    • Date
    • Thread