Your Drush Make article

4 posts / 0 new
Last post
Offline
Last seen: 2 years 1 month ago
Joined: 05/21/2012 - 13:36
Your Drush Make article

Hi again,

The reason I'm on this site in the first place was that I found the article 'Getting Started With Drush Make' when searching for a guide to ALL of the properties of a makefile. If such a resource exists somewhere else, I couldn't find it, so thank you for providing it here!

The problem I was trying to solve was how to install a custom library. For some reason I couldn't install it as a zip file. In this specific case it turns out that when:

libraries[yourlibrary][download][type] = "file"
libraries[yourlibrary][download][url] = "http://yoursite.com/files/yourlibrary.zip"
yourlibrary.zip is an archive with one file and that zip file is not a zipped version of a directory called yourlibrary with the file you want to extract within

it won't work.

Unsurprisingly, this is not documented anywhere. Your blog post helped me to contemplate the different ways the file could be dealt with and eventually I realised that my library was unlike any of the others given as examples in any of the tutorials on Drush Make scattered around the interwebs.

So let that be a warning to you ;-)

Cheers,

Richard

philipnorton42's picture
Offline
Last seen: 3 days 12 hours ago
Joined: 04/04/2010 - 23:03
Thanks Richard, I'm glad you liked the article. I did toy with including EVERYTHING from drush make, but thought it might be a bit on the long side. The examples of zip file libraries I have used have all worked but I haven't really used it extensively so I couldn't comment on your troubles :) I suppose that if it doesn't work as intended then you can always look through the drush make source code to see what is going on. It wouldn't be the first time I had reverse engineered something in Drupal to get it to do what I wanted! :D
Offline
Last seen: 2 years 1 month ago
Joined: 05/21/2012 - 13:36

I was too obtuse in my original post - the solution lies within.

  1. create a directory called yourlibrary
  2. put that single custom library file in that directory
  3. zip the directory

Cheers!

Offline
Last seen: 2 years 1 month ago
Joined: 05/21/2012 - 13:36

Feel free to skip step 2, above ;-)