Handy Scripts
Since I was going to test the forum feature I thought I might post something to share. I adapted these scripts from an article by Kurt Cagle on the O'Reilly website. The script comments contain the link to the article.
They are Linux bash scripts and will probably also work on a Mac under OS X. If you are running on Windows I am afraid I can't help there. These scripts work for both modules and themes depending on where you place them. This first script will retrieve a module (or theme) and install it. It should be named 'getmodule'. #!/bin/sh # getmodule bash script from Getting Started with Drupal # by Kurt Cagle at http://broadcast.oreilly.com/2008/11/getting-started-with-drupal.html # IMPORTANT CAVEAT: This script assumes it is executed from the directory # into which the module will be installed. (Usually {drupalsite}/sites/all/modules) # ALSO, it doesn't check if it has the required argument! # Create a place to temporarily hold the downloaded module files mkdir -p downloads cd downloads # Retrieve the module wget $1 # Unzip and extract gunzip *.gz tar xf *.tar # Cleanup the archive file rm *.tar # Move the module to its proper location (one level up). mv * .. # Clean up any cruft left behind rm -rf * cd .. This script uses the first and reads lines in from another file to retrieve several modules or themes in a batch mode. I named this script 'batchmodules' but you can name it anything. #!/bin/bash # batchmodules script from Getting Started with Drupal by Kurt Cagle at # http://broadcast.oreilly.com/2008/11/getting-started-with-drupal.html # This script reads lines from an input file. Each line is a complete # URL to retrieve a module from the Drupal site. # (e.g., http://ftp.drupal.org/files/projects/pathauto-6.x-1.1.tar.gz) # This script uses and depends on a companion script "getmodule" that # must be located in the same directory. while read module do ./getmodule $module done < $1 Here is a sample file containing modules to retrieve and install. I usually call it modules.txt http://ftp.drupal.org/files/projects/cck-6.x-2.1.tar.gz http://ftp.drupal.org/files/projects/views-6.x-2.3.tar.gz http://ftp.drupal.org/files/projects/filefield-6.x-3.0-alpha7.tar.gz I hope you find these useful. - Dean


Well, here is a bug. I posted this using the plain text editor and included <code> tags around the script code. It looked good in preview but then the editor had switched back to the WYSIWYG version and when I posted via the save button the formatting was ruined.
If you'd like copies of the scripts let me know. I may try to post them individually in comments.