Ignore:
Timestamp:
Nov 14, 2007 11:14:44 AM (13 years ago)
Author:
stefan
Message:

allow removal of old build before new build (i.e., clean config+build)
make svnRevision also working with german svn

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/testScripts/NBbuildConfig.py

    r771 r773  
    99import sys
    1010import re
     11import shutil
    1112
    1213import NBlogMessages
     
    162163      if not msg:
    163164        # Previous run ran fine, and nothing has changed.
    164         NBlogMessages.writeMessage('  No changes since previous successfull run')
     165        NBlogMessages.writeMessage('  No changes since previous successful run')
    165166        return
    166167      NBlogMessages.writeMessage('  '+msg)
     
    253254
    254255  #---------------------------------------------------------------------
     256  # Completely remove a previous build if the user indicates this
     257  #---------------------------------------------------------------------
     258  if configuration['clear previous build'] and os.path.isdir(fullBuildDir) :
     259    NBlogMessages.writeMessage('  Remove previous build in directory '+fullBuildDir)
     260    try:
     261      shutil.rmtree(fullBuildDir)
     262    except shutils.Error :
     263      NBlogMessages.writeMessage('  Warning: removal of directory '+fullBuildDir+' failed.')
     264   
     265  #---------------------------------------------------------------------
    255266  # Create the build directory if it doesn't exist
    256   # and remove file that indicates prior run tested ok.
    257267  #---------------------------------------------------------------------
    258268  if not os.path.isdir(fullBuildDir) :
Note: See TracChangeset for help on using the changeset viewer.