function make_libraries

8.0.x make.drush.inc make_libraries($recursion, $contrib_destination, $info, $build_path, $make_dir)
6.x make.drush.inc make_libraries($contrib_destination, $info, $build_path, $make_dir)
7.x make.drush.inc make_libraries($recursion, $contrib_destination, $info, $build_path, $make_dir)
5.x make.drush.inc make_libraries($contrib_destination, $info, $build_path)
master make.drush.inc make_libraries($recursion, $contrib_destination, $info, $build_path, $make_dir)

Process all libraries specified in the make file.

2 calls to make_libraries()
DrushMakeProject::recurse in commands/make/make.project.inc
Recurse to process additional makefiles that may be found during processing.
drush_make in commands/make/make.drush.inc
Drush callback; make based on the makefile.

File

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

Code

function make_libraries($contrib_destination, $info, $build_path, $make_dir) {
  if (empty($info['libraries'])) {
    return;
  }
  $ignore_checksums = drush_get_option('ignore-checksums');
  foreach ($info['libraries'] as $key => $library) {
    if (!is_string($key) || !is_array($library)) {
      // TODO Print a prettier message.
      continue;
    }
    // Merge the known data onto the library info.
    $library += array(
      'name' => $key,
      'core' => $info['core'],
      'build_path' => $build_path,
      'contrib_destination' => $contrib_destination,
      'subdir' => '',
      'directory_name' => $key,
      'make_directory' => $make_dir,
    );
    if ($ignore_checksums) {
      unset($library['download']['md5']);
    }
    $class = DrushMakeProject::getInstance('library', $library);
    $class->make();
  }
}