[2.2] Getting shell script phase to run when cleaning...
[2.2] Getting shell script phase to run when cleaning...
- Subject: [2.2] Getting shell script phase to run when cleaning...
- From: Shawn Erickson <email@hidden>
- Date: Wed, 16 Nov 2005 10:47:03 -0800
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?
_______________________________________________
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