Last active
September 27, 2019 18:16
-
-
Save delphian/6027415 to your computer and use it in GitHub Desktop.
Example drupal drush site.make file for automatically downloading modules, themes, profiles, and libraries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; @file drush-example-site.make | |
; @author Bryan Hazelbaker <[email protected]> | |
; | |
; @brief Drush make file to be processed by the `drush make` command | |
; | |
; @details Running drush make on this configuration file will download | |
; all specified modules, themes, and libraries into their respective | |
; directories. the `drush` command must first be installed to process | |
; this make file. | |
; | |
; @see https://drupal.org/project/drush | |
; | |
; Example shell command to build make file: | |
; @code | |
; drush make --yes --no-core --working-copy --contrib-destination=. ./site.make | |
; @endcode | |
; Example shell script to gather existing module/version information | |
; @code | |
; grep -R 'version = ' . | grep '^\.\/[^\/]*\/[^\/\.]*\.info' | |
; @endcode | |
; Set some reasonable defaults | |
core = 7.x | |
api = 2 | |
defaults[projects][subdir] = "contrib" | |
; Download an individual module by version. | |
; Specify subdirectories to install module to. | |
projects[addressfield][subdir] = contrib | |
; Specify the version of the module to download | |
projects[addressfield][version] = 1.0-beta4 | |
; Download a module via git and commit hash tag. | |
projects[bcc][subdir] = contrib | |
projects[bcc][type] = module | |
projects[bcc][download][type] = git | |
projects[bcc][download][url] = http://git.drupal.org/project/bcc.git | |
projects[bcc][download][revision] = a94a8214146e4c5f6505ff2c6c6f927f568769e1 | |
; Download module by version, but then apply a patch file. | |
projects[entity][subdir] = contrib | |
projects[entity][version] = 1.1 | |
projects[entity][patch][] = http://atrium.activelamp.net/sites/atrium.activelamp.net/files/arraymerge.patch | |
; Libraries can be downloaded as a tarball and will be extracted | |
; into the libraries subfolder. | |
libraries[google-api-php-client][download][type] = "file" | |
libraries[google-api-php-client][download][url] = http://google-api-php-client.googlecode.com/files/google-api-php-client-0.6.2.tar.gz | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment