function drush_make_generate

8.0.x generate.make.inc drush_make_generate($file = NULL)
6.x generate.make.inc drush_make_generate($file = NULL)
7.x generate.make.inc drush_make_generate($file = NULL)
5.x generate.make.inc drush_make_generate($file = NULL)
master generate.make.inc drush_make_generate($file = NULL)

Drush callback; generate makefile from the current build.

File

commands/make/generate.make.inc, line 14
Functions for the generate makefile command.

Code

function drush_make_generate($file = NULL) {
  $version_options = _drush_make_generate_get_version_options();
  $all_extensions = drush_get_extensions();
  list($projects, $libraries) = _drush_make_generate_projects($all_extensions, $version_options);
  $core = drush_drupal_major_version() . '.x';
  $contents = make_generate_makefile_contents($projects, $libraries, $core);

  // Write or print our makefile.
  make_generate_print($contents, $file);
}