Lines Matching refs:os
26 import optparse, os, shutil, subprocess, sys
28 buildDirectory = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "WebKitBuild"))
53 archiveFile = os.path.join(buildDirectory, configuration + ".zip")
56 os.unlink(archiveFile)
61 configurationBuildDirectory = os.path.join(buildDirectory, configuration.title())
66 binDirectory = os.path.join(configurationBuildDirectory, "bin")
67 thinDirectory = os.path.join(configurationBuildDirectory, "thin")
68 thinBinDirectory = os.path.join(thinDirectory, "bin")
70 if os.path.isdir(thinDirectory):
72 os.mkdir(thinDirectory)
77 if subprocess.call("rm -f %s" % os.path.join(thinBinDirectory, "*.ilk"), shell=True):
86 thinDirectory = os.path.join(configurationBuildDirectory, "thin")
88 if os.path.isdir(thinDirectory):
90 os.mkdir(thinDirectory)
93 fromDir = os.path.join(configurationBuildDirectory, dirname, "*")
94 toDir = os.path.join(thinDirectory, dirname)
95 os.makedirs(toDir)
99 for root, dirs, files in os.walk(thinDirectory, topdown=False):
102 os.remove(os.path.join(root, name))
110 archiveFile = os.path.join(buildDirectory, configuration + ".zip")
111 configurationBuildDirectory = os.path.join(buildDirectory, configuration.title())
114 if os.path.isdir(configurationBuildDirectory):
119 os.unlink(archiveFile)
122 binDirectory = os.path.join(configurationBuildDirectory, "bin")
123 if os.path.isdir(binDirectory):
126 os.makedirs(binDirectory)
138 if os.path.isdir(configurationBuildDirectory):
143 os.unlink(archiveFile)