Re: pbxcp vanished in Xcode 4.4
Re: pbxcp vanished in Xcode 4.4
- Subject: Re: pbxcp vanished in Xcode 4.4
- From: Jonas Maebe <email@hidden>
- Date: Fri, 27 Jul 2012 00:59:31 +0200
On 27 Jul 2012, at 00:45, Jonas Maebe wrote:
>
> On 26 Jul 2012, at 18:51, Mel Walker wrote:
>
>> I'm copying frameworks, but only under certain build conditions.
>>
>> I use:
>> path/to/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -resolve-src-symlinks "${PROJECT_DIR}/myframeworks/Foo.framework" ${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}
>>
>> I figure I'd have replace it with a cp command, followed by a find command to remove the excluded files, but I don't know what to do about the -resolve-src-symlinks argument.
>
> I'm not sure what -resolve-src-symlinks means (even after looking at the help of pbxcp). If it means "resolve any symlink to its target, but do not recursively resolve the target in case it's also a symlink", then something like this should work (untested):
>
> tar -c -C "${PROJECT_DIR}/myframeworks" --exclude .DS_Store --exclude CVS --exclude .svn --exclude .git -H `find Foo.framework` | tar -x -C ${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}
Sorry, the find command won't be executed in the correct directory like that, so it should rather be:
/usr/bin/tar -c -C "${PROJECT_DIR}/myframeworks" --exclude .DS_Store --exclude CVS --exclude .svn --exclude .git -H `cd "${PROJECT_DIR}/myframeworks" && find Foo.framework` | /usr/bin/tar -x -C ${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}
This one is somewhat tested, hence the /usr/bin/tar (I have fink installed, and fink's GNU tar uses the -H option for a different purpose compared to Mac OS X' BSD tar).
Jonas
_______________________________________________
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