[Commits] (heikki) Make clean.

commits at osafoundation.org commits at osafoundation.org
Fri Mar 5 10:30:24 PST 2004


Commit by: heikki
Modified files:
osaf/chandler/m2crypto/__hardhat__.py 1.1 1.2

Log message:
Make clean.


ViewCVS links:
http://cvs.osafoundation.org/index.cgi/osaf/chandler/m2crypto/__hardhat__.py.diff?r1=text&tr1=1.1&r2=text&tr2=1.2

Index: osaf/chandler/m2crypto/__hardhat__.py
diff -u osaf/chandler/m2crypto/__hardhat__.py:1.1 osaf/chandler/m2crypto/__hardhat__.py:1.2
--- osaf/chandler/m2crypto/__hardhat__.py:1.1	Tue Mar  2 15:10:55 2004
+++ osaf/chandler/m2crypto/__hardhat__.py	Fri Mar  5 10:29:53 2004
@@ -21,14 +21,25 @@
           '--force'],
          "Building and installing debug")
 
+
 def clean(buildenv):
+    # XXX Why doesn't 'setup.py clean' work?
+    
+    hardhatlib.rm_files('.', '_m2crypto.py')
+    hardhatlib.rm_files('SWIG', '_m2crypto.c')
+
+    if buildenv['version'] == 'release':
+        if os.path.exists("build_release"):
+            hardhatlib.rmdir_recursive("build_release")
+            hardhatlib.log(buildenv, hardhatlib.HARDHAT_MESSAGE, 
+             info['name'], "Removed build_release directory")
 
-    version = buildenv['version']
+    if buildenv['version'] == 'debug':
+        if os.path.exists("build_debug"):
+            hardhatlib.rmdir_recursive("build_debug")
+            hardhatlib.log(buildenv, hardhatlib.HARDHAT_MESSAGE, 
+             info['name'], "Removed build_debug directory
 
-    if buildenv['os'] == 'osx' or buildenv['os'] == 'posix':
-        pass
-    elif buildenv['os'] == 'win':
-        pass
 
 def run(buildenv):
     pass



More information about the Commits mailing list