Re: [Pyobjc-dev] clean.py doesn't seem to be working?
Brought to you by:
ronaldoussoren
From: Bob I. <bo...@re...> - 2004-05-14 17:03:23
|
On May 14, 2004, at 12:56 PM, b.bum wrote: > On May 14, 2004, at 9:36 AM, Bob Ippolito wrote: >> On May 13, 2004, at 1:48 PM, b.bum wrote: >>> I can't remember if this ever worked, but I thought that it did. If >>> I do: >>> >>> python clean.py -k --reverse Project\ Templates/Cocoa-Python\ >>> Document-based\ Application /tmp/foo >>> >>> ... the resulting project in /tmp/foo comes up with invalid >>> references to the python source files. Oh, wait, that's because we >>> aren't dealing with the filenames based on the TemplateInfo.plist. >>> >>> That'd be a bug. Ugh. I wish I had 40 hour days. >> >> What do you mean by "filenames based on the TemplateInfo.plist" >> exactly? >> >> If it doesn't work now, it never worked.. I didn't remove any >> functionality. > > Yes. It never worked and it has long been on my TODO list. > > If you look inside the template .xcode, there is a plist named > something like TemplateInfo.plist. It contains the rules for doing > substitutions on filenames and matches certain file references with > substitution characters in the project file itself. Given that it > was written in the context of PyObjC in the first place, we could > always use NSDictionary to load the plist and perform/unperform the > substitutions as a part of working with the template. Right now I'm at BSDCan, so I don't really have the time to do any dev until I get back next week... so after we release and make the move to subversion I plan to turn all of the templates into "source" form (so that the in-svn templates can be opened and edited with Xcode), fix clean.py, and make a build script that does the clean.py step (builds usable templates from the xcode-openable-projects). -bob |