[fwbuilder-commits] r2970 - branches/v4_0
Brought to you by:
mikehorn
From: <va...@in...> - 2010-06-08 21:57:36
|
Author: vadim Date: 2010-06-08 14:57:26 -0700 (Tue, 08 Jun 2010) New Revision: 2970 Modified: branches/v4_0/testclean.py Log: cleaning unit test directories with .a libraries Modified: branches/v4_0/testclean.py =================================================================== --- branches/v4_0/testclean.py 2010-06-08 20:42:31 UTC (rev 2969) +++ branches/v4_0/testclean.py 2010-06-08 21:57:26 UTC (rev 2970) @@ -26,8 +26,9 @@ profiles = glob(directory+"/*.pro") if not profiles: print directory - print "No pro file found in specified directory. Exiting." - sys.exit(1) + print "No pro file found in specified directory. Skipping." + continue + profile = open(profiles[0]).read() objdirs = OBJRE.findall(profile) objdir = directory @@ -61,5 +62,11 @@ if os.path.exists(moc): print "deleting", moc os.remove(moc) + + files = glob(directory+"/*.a") + for file in files: + print "deleting", file + os.remove(file) + print directory, ": done." -print "all done." \ No newline at end of file +print "all done." |