From 2367822f21bf34c4d6a4e25a0269444a95a230d1 Mon Sep 17 00:00:00 2001 From: Mathieu Lutfy Date: Tue, 21 May 2013 09:28:39 -0400 Subject: [PATCH] Added help function, a bit more error checking, and allow to restore a .sql to be used on the test site. --- tools/scripts/mk-drupal-test-site | 68 ++++++++++++++++++++++++++----- 1 file changed, 58 insertions(+), 10 deletions(-) diff --git a/tools/scripts/mk-drupal-test-site b/tools/scripts/mk-drupal-test-site index ae4a830bc5..bef4bb04f3 100755 --- a/tools/scripts/mk-drupal-test-site +++ b/tools/scripts/mk-drupal-test-site @@ -5,6 +5,9 @@ set -ex ## If a site already exists, destroy and recreate it. ## Usage: mk-drupal-test-site +## SOURCE: +## https://github.com/civicrm/civicrm-core/blob/master/tools/scripts/mk-drupal-test-site + ## Pre-requisites: ## - MySQL admin credentials in ~/.my.cnf ## - Apache vhost with mod_rewrite, etc @@ -15,6 +18,34 @@ set -ex ## - drush ## - (strongly recommended) filesystem with "acl" support + +function usage() { + cat <