Re: Copy Headers that preserves subdirectory structure?
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