• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cleaning with a shell script build phase
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cleaning with a shell script build phase


  • Subject: Re: Cleaning with a shell script build phase
  • From: Michael Rice <email@hidden>
  • Date: Thu, 18 Aug 2005 23:13:59 -0500

You're correct, it does not call the script for a 'clean'. I had this same problem a couple days ago and ended up creating an External Target to run the script. It works, but I would have preferred just having a Shell Script Target.

Michael

On Aug 18, 2005, at 9:20 PM, Scott Tooker wrote:

I don't think we currently support calling Run Script build phases when cleaning. I'd recommend filing a bug.

Scott

On Aug 18, 2005, at 2:18 PM, John Ashley Burgoyne wrote:


Hello,

I am using XCode to work on a large existing (wx)Python/C++ project. The project deploys with python distutils scripts, and so I created a target with the following two Run Script build phases:

---- SCRIPT 1 - ALWAYS RUNS ----

if [ ${ACTION} = 'clean' ]; then
    python setup.py clean --all
elif [ ${ACTION} = 'build' ]; then
    python setup.py build
fi

---- SCRIPT 2 - RUNS ONLY WHEN INSTALLING ----

python setup.py install --home=${INSTALL_DIR}

----

These scripts do exactly as I would expect for development and deployment builds, but XCode does not seem to call the script for 'clean'. Is it possible to do this?

Kind regards,

John Ashley Burgoyne
_______________________________________________
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:
40knology.net


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
References: 
 >Cleaning with a shell script build phase (From: John Ashley Burgoyne <email@hidden>)
 >Re: Cleaning with a shell script build phase (From: Scott Tooker <email@hidden>)

  • Prev by Date: Re: Cleaning with a shell script build phase
  • Next by Date: Different GDB than the native processors.
  • Previous by thread: Re: Cleaning with a shell script build phase
  • Next by thread: Debugging with x code
  • Index(es):
    • Date
    • Thread