Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[2.2] Getting shell script phase to run when cleaning...



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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.