Somewhat OT - Creating a Project Template from Working Project With Shell Script
Somewhat OT - Creating a Project Template from Working Project With Shell Script
- Subject: Somewhat OT - Creating a Project Template from Working Project With Shell Script
- From: Rush Manbert <email@hidden>
- Date: Wed, 14 Jun 2006 13:40:51 -0700
Let's say that I have a working project. It's called libtemplate and it
actually builds a static library that does nothing. The reason that I
have it is that it is set up the way that I want all of my new static
library projects to be set up.
I know how to edit the project.pbxproject. file to make this be a
project template that names the targets and the products correctly based
on the new project name, and I have a TemplateInfo.plist file that
handles file renaming and content swizzling.
I want all of my developers to use the project template that I derive
from this project. But since we might change our standard configuration
in the future, I might need to change the original project and
regenerate the project template from the changes. In order for my
developers to use the project template, it needs to be copied into a
folder within their ~/Library directory tree.
It seems like my best approach to generating the project template is to
write a script that knows how to do it. That wouldn't be a problem,
except that I need to replace all instances of "libtemplate" in the
project file with "«PROJECTNAME»".
What I would like to do is just cat the project file and run it through
sed to do the string replacement, but I think those funny chevron
characters are going to be a problem. Does anyone know of some other way
to do this using shell-level tools? Would perl handle the wacky characters?
Thanks,
Rush
_______________________________________________
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