function make_clean_tmp

8.0.x make.utilities.inc make_clean_tmp()
6.x make.utilities.inc make_clean_tmp()
7.x make.utilities.inc make_clean_tmp()
5.x make.utilities.inc make_clean_tmp()
master make.utilities.inc make_clean_tmp()

Removes the temporary build directory. On failed builds, this is handled by drush_register_file_for_deletion().

1 call to make_clean_tmp()
drush_make_post_make in commands/make/make.drush.inc
Implements drush_hook_post_COMMAND() for the make command.

File

commands/make/make.utilities.inc, line 353
General utility functions for Drush Make.

Code

function make_clean_tmp() {
  if (!($tmp_dir = make_tmp(FALSE))) {
    return;
  }
  if (!drush_get_option('no-clean', FALSE)) {
    drush_delete_dir($tmp_dir);
  }
  else {
    drush_log(dt('Temporary directory: !dir', array('!dir' => $tmp_dir)), 'ok');
  }
}