-
-
Save jottr/8344143 to your computer and use it in GitHub Desktop.
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 -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