Skip to content
Snippets Groups Projects
Allclean 664 B
Newer Older
  • Learn to ignore specific revisions
  • #!/bin/sh
    
    cd "${0%/*}" || exit                            # Run from this directory
    
    . "${WM_PROJECT_DIR:?}"/bin/tools/LogFunctions  # Tutorial log-file functions
    
    #------------------------------------------------------------------------------
    
    
    # Remove old build/ directory
    
    buildDir="${WM_PROJECT_DIR}/build/${WM_OPTIONS}/${PWD##*/}"
    
    if [ -d "$buildDir" ]
    then
        echo "Removing old build directory: $buildDir" 1>&2
    
        rm -rf -- "$buildDir"
    
    foamCleanTutorials -self    # Run recursively but avoid self
    
    #------------------------------------------------------------------------------