echo "Check procedure and remove drupal-$old once you make sure that everything is fine."
}
+# Run a drupal makefile
+function drupal_make {
+ if [ -z "$1" ]; then
+ echo "Usage: `basename $0` make <series>"
+ exit 1
+ fi
+
+ series="$1"
+ base="$BASE/drupal-$series"
+ makefile="/usr/local/share/drupal/drupal$series.make"
+
+ if [ -e "$makefile" ]; then
+ drush dl drush_make
+ ( cd $base && drush make -y --no-core $makefile )
+ else
+ echo "Makefile not found: $makefile"
+ exit 1
+ fi
+}
+
# Main procedure
if [ -z "$1" ]; then
echo "Usage: `basename $0` <cron|deploy|update|updatedb|upgrade|run> [arguments]"
elif [ "$1" == "run" ]; then
shift
drupal_iterate $*
+elif [ "$1" == "make" ]; then
+ shift
+ drupal_make $*
else
echo "No action $1"
exit 1