2

I am trying to create a make file for the closedquestion module following the instructions in the readme file.

I know the below configuration snippet doesn't work - due to the fact that I am overwriten the first declared download with the second.

; Closedquestion libraries

; * Put jquery.json in sites/all/libraries/jquery-json
;   get it from: http://code.google.com/p/jquery-json/
;   This should result in one of the files (you might have to rename it):
;   - sites/all/libraries/jquery-json/jquery.json.js
;   - sites/all/libraries/jquery-json/jquery.json.min.js

libraries[jquery-json][download][type] = "file"
libraries[jquery-json][download][url] = "http://jquery-json.googlecode.com/files/jquery.json-2.3.js"
libraries[jquery-json][download][sha1] = "2bf6472f96791d6f8a5a405fe6eabe87babf8931"

libraries[jquery-json][download][type] = "file"
libraries[jquery-json][download][url] = "http://jquery-json.googlecode.com/files/jquery.json-2.3.min.js"
libraries[jquery-json][download][sha1] = "2a4615b93c65dd50f92117c570121035a0327fee"

I also tried renaming the second to jquery-json-min & defining a directory_name, but that just throws an error that the folder already exists as would be expected.

libraries[jquery-json-min][download][type] = "file"
libraries[jquery-json-min][download][url] = "http://jquery-json.googlecode.com/files/jquery.json-2.3.min.js"
libraries[jquery-json-min][download][sha1] = "2a4615b93c65dd50f92117c570121035a0327fee"
libraries[jquery-json-min][directory_name] = "jquery-json"

Any input on how this could be solved would be much appreciated.

1

You are close, you should use destination instead:

libraries[jquery-json-min][download][type] = "file"
libraries[jquery-json-min][download][url] = "http://jquery-json.googlecode.com/files/jquery.json-2.3.min.js"
libraries[jquery-json-min][download][sha1] = "2a4615b93c65dd50f92117c570121035a0327fee"
libraries[jquery-json-min][destination] = "libraries/jquery-json"
| improve this answer | |
  • Very nice, worked as a charm. – lslinnet Jan 24 '12 at 11:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.