Created
October 29, 2018 17:58
-
-
Save homotechsual/05d193946632e73e11aaa8ea4a2125a4 to your computer and use it in GitHub Desktop.
download.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## download.sh -- Download Drupal and CiviCRM | |
############################################################################### | |
[ -z "$CMS_VERSION" ] && CMS_VERSION=7.x | |
[ -z "$VOL_VERSION" ] && VOL_VERSION='master' | |
[ -z "$NG_PRFL_VERSION" ] && NG_PRFL_VERSION='master' | |
[ -z "$RULES_VERSION" ] && RULES_VERSION='master' | |
[ -z "$DISC_VERSION" ] && DISC_VERSION='master' | |
[ -z "$SD_VERSION" ] && SD_VERSION='master' | |
[ -d "$WEB_ROOT.drushtmp" ] && rm -rf "$WEB_ROOT.drushtmp" | |
drush8 -y dl drupal-${CMS_VERSION} --destination="$WEB_ROOT.drushtmp" --drupal-project-rename | |
mv "$WEB_ROOT.drushtmp/drupal" "$WEB_ROOT" | |
[ -d "$WEB_ROOT.drushtmp" ] && rm -rf "$WEB_ROOT.drushtmp" | |
pushd "$WEB_ROOT" | |
drush8 dl -y libraries-1 redirect-1 webform-4 options_element-1 webform_civicrm-4 views-3 login_destination-1 userprotect-1 devel-1 civicrm_error-2.x-dev | |
pushd sites/all/modules | |
git clone "${CACHE_DIR}/civicrm/civicrm-core.git" -b "$CIVI_VERSION" civicrm | |
git clone "${CACHE_DIR}/civicrm/civicrm-drupal.git" -b "7.x-$CIVI_VERSION" civicrm/drupal | |
git clone "${CACHE_DIR}/civicrm/civicrm-packages.git" -b "$CIVI_VERSION" civicrm/packages | |
git clone "${CACHE_DIR}/civicrm/api4.git" -b "master" civicrm/ext/api4 | |
git clone "${CACHE_DIR}/eileenmcnaughton/civicrm_developer.git" -b master civicrm_developer | |
git clone "${CACHE_DIR}/civicrm/civivolunteer.git" -b "$VOL_VERSION" civicrm/tools/extensions/civivolunteer | |
git clone "${CACHE_DIR}/ginkgostreet/org.civicrm.angularprofiles.git" -b "$NG_PRFL_VERSION" civicrm/tools/extensions/org.civicrm.angularprofiles | |
git clone "${CACHE_DIR}/civicrm/org.civicoop.civirules.git" -b "$RULES_VERSION" civicrm/tools/extensions/org.civicoop.civirules | |
git clone "${CACHE_DIR}/TechToThePeople/civisualize.git" -b "master" civicrm/tools/extensions/civisualize | |
git clone "${CACHE_DIR}/dlobo/org.civicrm.module.cividiscount.git" -b "$DISC_VERSION" civicrm/tools/extensions/cividiscount | |
git clone "${CACHE_DIR}/civicrm/org.civicrm.shoreditch.git" -b "$SD_VERSION" civicrm/tools/extensions/shoreditch | |
extract-url --cache-ttl 172800 civicrm=http://download.civicrm.org/civicrm-l10n-core/archives/civicrm-l10n-daily.tar.gz | |
## or https://raw.github.com/civicrm/l10n/master/po/fr_CA/civicrm.mo => civicrm/l10n/fr_CA/LC_MESSAGES/ | |
popd | |
popd | |
0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment