You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ts...@apache.org on 2012/09/25 09:11:29 UTC
[4/4] git commit: distclean target for waf to remove old build
artifacts
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/master
Commit: 0b0d57255c05ac0ddea3f161776348b0cfa6f8a0
Parents: fb813c8
Author: Prasanna Santhanam <ts...@apache.org>
Authored: Thu Sep 20 12:40:37 2012 +0530
Committer: Prasanna Santhanam <ts...@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)