Re: Copy File/ Shell Script Phase
Re: Copy File/ Shell Script Phase
- Subject: Re: Copy File/ Shell Script Phase
- From: Stephane Sudre <email@hidden>
- Date: Thu, 25 Mar 2004 18:11:39 +0100
Le jeudi, 25 mar 2004, ` 17:50 Europe/Paris, Jerry LeVan a icrit :
I have a project that builds an application, say Magician.
Magician needs a helper, MagicWand, a C or Foundation executable.
I have added a target MagicWand to the the Magician project and
and aggregate target to build both.
I want the MagicWand to wind up in the Resources folder of the
Magician application at the end of the build process. (So the
Magician can, of course, know where the MagicWand is located).
In addition, since we give the source away, we want the build
to work wherever the apprentice magician locates the project.
I added a Copy File build phase to the project for the target
Magician but dragging the icon of the MagicWand executable from
the Groups and Files panel onto the CopyFile object has no effect.
It appears to me that a Shell Script build phase requires absolute
paths and thus would break if the project were to be moved.
Does anyone know any advanced magic that can solve my problem?
No absolute path is required. You just have to know that the current
working directory of a script file is the project directory.
So if your 2 targets are building in the same location, you can
probably do the following thing:
cp -RPH build/MagicWand build/Magician/Contents/Resources/
This is how I would do it with ProjectBuilder.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.