Made scons remove build/variant/ dirs...
...if stale duplicated sourcefiles are found in them.
This commit is contained in:
parent
96940a8737
commit
b9352d8602
1 changed files with 3 additions and 1 deletions
|
@ -14,7 +14,9 @@ from glob import glob
|
|||
from subprocess import Popen, PIPE, call
|
||||
from os import access, F_OK
|
||||
|
||||
map(os.remove, glob(os.path.join("build", "*", "SConscript")))
|
||||
for dir in ["release", "debug", "profile"]:
|
||||
if glob(os.path.join("build", dir, "*.cpp")):
|
||||
shutil.rmtree(os.path.join("build", dir), True)
|
||||
|
||||
SConsignFile("build/sconsign.dblite")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue