function drush_make_post_make

6.x make.drush.inc drush_make_post_make($makefile = NULL, $build_path = NULL)
5.x make.drush.inc drush_make_post_make($makefile = NULL, $build_path = NULL)

Implements drush_hook_post_COMMAND() for the make command.

File

commands/make/make.drush.inc, line 219
Drush Make commands.

Code

function drush_make_post_make($makefile = NULL, $build_path = NULL) {
  if (drush_get_option('version')) {
    return;
  }
  if (!($build_path = make_build_path($build_path))) {
    return;
  }

  if ($option = drush_get_option('md5')) {
    $md5 = make_md5();
    if ($option === 'print') {
      drush_print($md5);
    }
    else {
      drush_log(dt('Build hash: %md5', array('%md5' => $md5)), 'ok');
    }
  }

  // Only take final build steps if not in testing mode.
  if (!drush_get_option('test')) {
    if (drush_get_option('tar')) {
      make_tar($build_path);
    }
    else {
      make_move_build($build_path);
    }
  }

  make_clean_tmp();
}