RFC: new way to handle MOC files ?
ulrich.kuettler at mailbox.tu-dresden.de
Fri Feb 21 18:17:35 GMT 2003
On Friday 21 February 2003 18:51, Alexander Neundorf wrote:
> I wrote a small python script to help handling moc files in Makefiles.
> It's a third way additionally to the existing automagic stuff and qmake.
I don't know whether this script is needed, but a few comments to the python
* In python you usually use four space indents. No tabs.
* The lines
if len(line)<1 : break
could be substituted with
for line in file(mocName,"r"):
* Instead of 'found=str.find(line,"include")' you'd better write
* And finally I don't get the difference between these two lines:
But that's probably my fault.
Apart from that I appreciate the idea. ;)
More information about the kde-core-devel