Skip to content

Instantly share code, notes, and snippets.

@jottr
Forked from gherkins/install_silverstripe.sh
Last active January 2, 2016 18:29
Show Gist options
  • Save jottr/8344143 to your computer and use it in GitHub Desktop.
Save jottr/8344143 to your computer and use it in GitHub Desktop.
#!/bin/bash -e
# install silverstripe + common modules from github
# usage sh install_silverstripe.sh <folder_name> <tag/branch>
# examples:
# sh install_silverstripe.sh some_folder tags/2.4.5
# sh install_silverstripe.sh some_folder master
#set up project base folder
git clone [email protected]:silverstripe/silverstripe-installer.git "$1"
cd $1
git checkout --orphan $2
git commit -am "Initial comit."
#setup cms
git subtree add --prefix cms --squash [email protected]:silverstripe/silverstripe-cms.git master
#setup framework
git subtree add --prefix framework --squash https://github.com/silverstripe/silverstripe-framework.git master
# install common modules
# git clone [email protected]:unclecheese/Uploadify.git uploadify
# git clone [email protected]:/unclecheese/DataObjectManager.git dataobject_manager
# git clone [email protected]:/silverstripe/silverstripe-userforms.git userforms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment