[Adium-devl] A sed script to upgrade Xcode build configuration names

Peter Hosey boredzo at adiumx.com
Wed Aug 13 09:40:32 UTC 2008


Before: Development and Deployment
After: Debug and Release

In Adium's case, this should also rename Deployment-Debug to Release- 
Debug.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: UpgradeConfigNames.sed
Type: application/octet-stream
Size: 83 bytes
Desc: not available
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20080813/550622ce/attachment.obj>
-------------- next part --------------



Usage:

	find * -name '*.pbxproj' -print0 | \
xargs -0 sed -f UpgradeConfigNames.sed -i '.new'

I just used it on the Growl project bundles:

	http://bitbucket.org/boredzo/growl/changeset/254cc9844be4

I would, of course, strongly recommend examining the diff before  
committing, to make sure that the script hasn't broken anything. (See,  
for example, the one exception in the middle of the script.)

The one immediate advantage that I can think of is that it lets us use  
svn:externals for RBSplitView, and just use the unmodified source  
code, and add it as a dependency in our Xcode project. The reason why  
we can't do this now is because our configuration names are different.



More information about the devel mailing list