Drush Make

dmitrig01 - July 23, 2009 - 21:18

Drush make is an extension to drush that can create a ready-to-use drupal site, pulling sources from various locations. It does this by parsing a flat text file (similar to a drupal .info file) and downloading the sources it describes. In practical terms, this means that it is possible to distribute a complicated Drupal distribution as a single text file.

Among drush make's capabilities are:

  • Downloading Drupal core, as well as contrib modules from drupal.org.
  • Checking code out from CVS, SVN, git, and bzr repositories.
  • Getting plain .tar.gz and .zip files (particularly useful for libraries that can not be distributed directly with drupal core or modules).
  • Fetching and applying patches.
  • Fetching modules, themes, and installation profiles, but also external libraries.

Usage

The drush make command can be executed from a path within a Drupal codebase or independent of any Drupal sites entirely.

Examples

  1. Build a Drupal site at example/ including Drupal core and any projects defined in the makefile:

    drush make example.make example

  2. Build a tarball of the platform above as example.tar.gz:

    drush make --tar example.make example

  3. Build an installation profile within an existing Drupal site:

    drush make --no-core --contrib-destination=. installprofile.make

Documentation & other resources

Maintainer

  • Dmitri Gaskin (dmitrig01)

Downloads

Version Downloads Date Links
6.x-2.0-beta8 Download (32.96 KB) 2010-Jun-30 Notes


 
 

Drupal is a registered trademark of Dries Buytaert.