mailr11848 - /1.3/sconstruct


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on December 17, 2010 - 10:19:
Author: bugman
Date: Fri Dec 17 10:19:50 2010
New Revision: 11848

URL: http://svn.gna.org/viewcvs/relax?rev=11848&view=rev
Log:
The 'scons clean' target now removes temporary relax save files.


Modified:
    1.3/sconstruct

Modified: 1.3/sconstruct
URL: 
http://svn.gna.org/viewcvs/relax/1.3/sconstruct?rev=11848&r1=11847&r2=11848&view=diff
==============================================================================
--- 1.3/sconstruct (original)
+++ 1.3/sconstruct Fri Dec 17 10:19:50 2010
@@ -407,6 +407,14 @@
                     if search('\.' + ext + '$', file):
                         remove(path.join(root, file))
 
+        # Remove relax save state files.
+        print "Removing temporary relax save state files (of the form 
relax_state_xxxxxxxx_xxxxxx.bz2).\n"
+        for root, dirs, files in walk(getcwd()):
+            # Loop over the files in the current directory.
+            for file in files:
+                if search('^relax_state_.*.bz2', file):
+                    remove(path.join(root, file))
+
         # Final print out.
         print "\n\n\n"
 




Related Messages


Powered by MHonArc, Updated Fri Dec 17 10:40:02 2010