mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
distclean target for waf to remove old build artifacts
This commit is contained in:
parent
fb813c84e1
commit
0b0d57255c
8
wscript
8
wscript
@ -83,6 +83,14 @@ for pattern in ["**/.project","**/.classpath","**/.pydevproject"]: Node.exclude_
|
||||
|
||||
# Support functions
|
||||
|
||||
def distclean(ctx):
|
||||
"""Clear the build artifacts"""
|
||||
for root, folder, files in os.walk(blddir):
|
||||
for f in files:
|
||||
path = os.path.join(root, f)
|
||||
print "Removing artifact %s"%path
|
||||
os.remove(path)
|
||||
|
||||
def inspectobj(x):
|
||||
"""Look inside an object"""
|
||||
for m in dir(x): print m,": ",getattr(x,m)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user