mailr13948 - /branches/gui_testing/sconstruct


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

Header


Content

Posted by edward on July 28, 2011 - 12:14:
Author: bugman
Date: Thu Jul 28 12:14:53 2011
New Revision: 13948

URL: http://svn.gna.org/viewcvs/relax?rev=13948&view=rev
Log:
The Mac OS X build and dist app directs have been added to the scons 
clean_all target.


Modified:
    branches/gui_testing/sconstruct

Modified: branches/gui_testing/sconstruct
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/sconstruct?rev=13948&r1=13947&r2=13948&view=diff
==============================================================================
--- branches/gui_testing/sconstruct (original)
+++ branches/gui_testing/sconstruct Thu Jul 28 12:14:53 2011
@@ -4,7 +4,7 @@
 
 
###############################################################################
 #                                                                            
 #
-# Copyright (C) 2006-2008 Edward d'Auvergne                                  
 #
+# Copyright (C) 2006-2011 Edward d'Auvergne                                  
 #
 #                                                                            
 #
 # This file is part of the program relax.                                    
 #
 #                                                                            
 #
@@ -30,6 +30,7 @@
 from os import getcwd, path, remove, sep, walk
 import platform
 from re import search
+from shutil import rmtree
 import sys
 
 # Scons modules.
@@ -378,6 +379,14 @@
                 for ext in temp_extns:
                     if search('\.' + ext + '$', file):
                         remove(path.join(root, file))
+
+        # Remove build directories.
+        if path.isdir('build'):
+            print("Removing the build directory 'build' used to create a Mac 
OS X app.")
+            rmtree('build')
+        if path.isdir('dist'):
+            print("Removing the distribution directory 'dist' used to create 
a Mac OS X app.")
+            rmtree('dist')
 
         # Final print out.
         print "\n\n\n"




Related Messages


Powered by MHonArc, Updated Thu Jul 28 13:00:02 2011