Re: Copy Headers that preserves subdirectory structure?
Re: Copy Headers that preserves subdirectory structure?
- Subject: Re: Copy Headers that preserves subdirectory structure?
- From: Mike Jackson <email@hidden>
- Date: Fri, 12 Oct 2007 15:24:36 -0400
Agreed. That was written when I was still "wet behind the ears". I
actually do not use that project any more but the clarification is
definitely welcome.
Cheers.
--
Mike Jackson Senior Research Engineer
Innovative Management & Technology Services
On Oct 12, 2007, at 2:54 PM, Greg Guerin wrote:
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:
40gmail.com
This email sent to email@hidden
_______________________________________________
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