Here's the suite of drupal scripts that I use and what they do.
Copy these scripts 

------------------------------------------------------
A note on mysql security
--------------------------------------------
Mysql database access is achieved by storing the password in the
.my.cnf file as indicated in MYSQL documentation.  The reason that I do this
is to allow multiple users to create the site using etc/sudoers.  

In my environment, I run these commands in the following manner using sudo: 

  cd drupal/scripts
  sudo -H ./copysite.sh newsitename skeldatabasename

Currently these scripts are meant to be executed from within the drupal scripts directory.
I haven't tested them outside of that.

TODO:  I'd like to modify these so that  they can be executed from anywhere and aliased in the drupal-env.sh file.

---------------------------------------------------
INSTALLATION

1. Copy the scripts to the drupal/scripts directory in your distribution.

2. Modify the drupal-env.sh script for the environment that you have.
----------------------------------------------------
USE
Here is a list of the scripts and what they do. 
  copydb   - Copies one mysql database to another using mysqldump.  Assumes an empty populated database.
  copysite - Creates a new copy of a drupal site from one defined by a skeleton.
  createdrupalsite - Creates the site directory, settings.php file and symbolic links for a new drupal site
                   (normally ccalled from copysite.)
  removedrupal - Removes site directories and drops database. 
  runmysqlscript - Runs an arbittrary sql script (used by other scripts) 
  updatevariables - Updates the site settings upload directory to be a subfolder of the files directory.
  cron-curl-all - Runs cron-curl against all sites defined in the sites subfolder. 
  



