Modified: branches/safari-536.30-branch/Tools/BuildSlaveSupport/delete-stale-build-files (146394 => 146395)
--- branches/safari-536.30-branch/Tools/BuildSlaveSupport/delete-stale-build-files 2013-03-20 22:01:58 UTC (rev 146394)
+++ branches/safari-536.30-branch/Tools/BuildSlaveSupport/delete-stale-build-files 2013-03-20 22:05:08 UTC (rev 146395)
@@ -31,7 +31,8 @@
def main():
parser = optparse.OptionParser("usage: %prog [options]")
- parser.add_option("--platform", dest="platform")
+ parser.add_option("--platform")
+ parser.add_option("--build-directory")
parser.add_option("--debug", action="" const="debug", dest="configuration")
parser.add_option("--release", action="" const="release", dest="configuration")
@@ -48,16 +49,20 @@
print 'Exited without removing any files.'
return 0
- directory = webkitBuildDirectory(genericPlatform, options.configuration)
+ if options.build_directory:
+ buildDirectory = options.build_directory
+ else:
+ buildDirectory = webkitBuildDirectory(genericPlatform, options.configuration)
+
exit_code = 0
- for root, _, files in os.walk(directory):
+ for root, _, files in os.walk(buildDirectory):
for name in files:
full_path = os.path.join(root, name)
ext = os.path.splitext(full_path)[1]
try:
- if ext in ('.dep', '.timestamp', '.txt', '.html', '.js', '.generated') or os.path.getsize(full_path):
+ if ext not in ('.o',) or os.path.getsize(full_path):
continue
except OSError as exception:
print exception
Modified: branches/safari-536.30-branch/Tools/ChangeLog (146394 => 146395)
--- branches/safari-536.30-branch/Tools/ChangeLog 2013-03-20 22:01:58 UTC (rev 146394)
+++ branches/safari-536.30-branch/Tools/ChangeLog 2013-03-20 22:05:08 UTC (rev 146395)
@@ -1,3 +1,9 @@
+2013-03-20 Ryosuke Niwa <[email protected]>
+
+ Unreviewed. Merge the latest delete-stale-build-files to make bots green.
+
+ * BuildSlaveSupport/delete-stale-build-files:
+
2013-03-04 Brady Eidson <[email protected]>
<rdar://problem/13337144> - Update 536.29 branch Loader and UI client layouts