Drush Make
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.gzand.zipfiles (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
-
Build a Drupal site at
example/including Drupal core and any projects defined in the makefile:drush make example.make example -
Build a tarball of the platform above as
example.tar.gz:drush make --tar example.make example -
Build an installation profile within an existing Drupal site:
drush make --no-core --contrib-destination=. installprofile.make
Documentation & other resources
- INSTALL.txt - install instructions
- README.txt - syntax and usage documentation
- EXAMPLE.make - example makefile
- Using squid as a caching server for drush module downloads by acrollet
Maintainer
- Dmitri Gaskin (dmitrig01)
