incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chipchild...@apache.org
Subject [11/11] git commit: distclean target for waf to remove old build artifacts
Date Tue, 25 Sep 2012 17:42:26 GMT
distclean target for waf to remove old build artifacts


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/0b0d5725
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/0b0d5725
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/0b0d5725

Branch: refs/heads/junit-tests
Commit: 0b0d57255c05ac0ddea3f161776348b0cfa6f8a0
Parents: fb813c8
Author: Prasanna Santhanam <tsp@apache.org>
Authored: Thu Sep 20 12:40:37 2012 +0530
Committer: Prasanna Santhanam <tsp@apache.org>
Committed: Fri Sep 21 10:45:30 2012 +0530

----------------------------------------------------------------------
 wscript |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/0b0d5725/wscript
----------------------------------------------------------------------
diff --git a/wscript b/wscript
index f1c9b62..ff38ed2 100644
--- a/wscript
+++ b/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)


Mime
View raw message