* This script scans the sites directory, and uses a regular expression to extract the sitenames.
* It then uses this sitename to execute the cronjob for these sites.
* You then only have to create one cronjob for this script.
* In this way, you can create and delete sites on the fly, but all their cronjobs will be executed.
* Carl van Denzen, june 2009:
* Options for this script:
* -h (p.e. arjan.vandenzen.nl)
* -r (p.e. .+\.vandenzen\.nl) This will be used in most cases.
* When this script is invoked with parameter -r, then it will call
* itself for every host in the sites directory that matches the -r regexp.
* These calls will be with the -h argument set to the site name.
* When invoked with -h option (only ONE is allowed), it will run cron
* for the named hostname site.
* When this script is invoked without parameters, it will die. This is to avoid
* runaway scripts.
* Purpose of this behaviour:
* You can add this script to your crontab with parameter -a: it will run
* for every site found in the drupal sites directory. This is the regular
* drupal/cron.php behaviour.
* In a one-site set-up it will only run for the default directory.
* In a multi-site set-up it will run for all sites (beware of the default directory?)