#!/bin/bash

ROOT=$(pwd)

drush dl drupal-8 --destination=/tmp --drupal-project-rename=drupal-8 --quiet -y

rsync -avz --delete /tmp/drupal-8/ $ROOT/docroot \
 --exclude=.gitkeep \
 --exclude=autoload.php \
 --exclude=composer.json \
 --exclude=core \
 --exclude=drush \
 --exclude=example.gitignore \
 --exclude=LICENSE.txt \
 --exclude=README.txt \
 --exclude=vendor

rm -rf /tmp/drupal-8
