[Scons-users] Starting with a clean installation directory
    Dirk Bächle 
    tshortik at gmx.de
       
    Mon Oct 21 14:09:38 EDT 2013
    
    
  
Hi Pico,
On 21.10.2013 19:42, Pico Geyer wrote:
> Hi all.
>
> I seem to be struggling with something that should be quite trivial.
> I would like to delete my installation directory to get rid of any 
> stale files before installing my various targets.
>
> [...]
>
> What's the simplest way to achieve this?
I think you're looking for
   Execute(Delete('../install_dir'))
which removes the folder at the time when the SConscript is read in, and 
not during the Build process like for Command().
Please, also have a look in the UserGuide, "12.7. Executing an action 
immediately: the Execute Function".
Best regards,
Dirk
    
    
More information about the Scons-users
mailing list