Skip to content

Instantly share code, notes, and snippets.

@skwashd
Forked from anonymous/example.make
Created March 18, 2013 02:45
Show Gist options
  • Save skwashd/5184626 to your computer and use it in GitHub Desktop.
Save skwashd/5184626 to your computer and use it in GitHub Desktop.
; Example drush make file using the github download type.
api = 2
core = 7
projects[] = drupal
; Module
projects[bean_boxes][type] = "module"
projects[bean_boxes][download][type] = "github"
projects[bean_boxes][download][url] = "skwashd/bean_boxes"
; Library
projects[gitter][type] = "library"
projects[gitter][download][type] = "github"
projects[gitter][download][url] = "klaussilveira/gitter"
<?php
/**
* Github download support functions for drush make.
*/
/**
* Support lazy downloads from github.
*/
function make_download_github($name, $download, $download_location) {
$download['url'] = "git@github.com:{$download['url']}.git";
return make_download_git($name, $download, $download_location);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment