Re: [2.2] Getting shell script phase to run when cleaning...
Re: [2.2] Getting shell script phase to run when cleaning...
- Subject: Re: [2.2] Getting shell script phase to run when cleaning...
- From: Scott Tooker <email@hidden>
- Date: Wed, 16 Nov 2005 14:06:44 -0800
On Nov 16, 2005, at 10:47 AM, Shawn Erickson wrote:
I want to use a shell script phase to map Xcode ACTION (clean, build,
install) to what I need to send to make. When building the script does
what I expect but when doing a clean of the target that contains the
script or when doing a clean all the shell phase doesn't appear to
execute. (not tried install yet)
I am using a "Shell Script Target" with the following in its shell
script phase. I am using this target to fire up an external make
system that builds libraries needed by other targets in the project.
Note the shell script phase currently does not list any input or
output files and "Run script only when installing" is not checked.
The following is an early/test version of this script...
--------------------------------------
echo "$ACTION"
if [ "$ACTION" = clean ]
then
final_make_action="clean"
fi
if [ "$ACTION" = build ]
then
final_make_action="$CTRX_ECRT_MAKE_ACTION"
fi
if [ "$ACTION" = install ]
then
final_make_action="clean $CTRX_ECRT_MAKE_ACTION"
fi
cd $CTRX_ECRT_MAKE_PATH
/usr/bin/make $final_make_action
--------------------------------------
So any way to get a shell script phase to execute during clean?
Not currently. We do have bugs on this issue, but you are welcome to
file another.
Scott
_______________________________________________
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
_______________________________________________
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