Created
February 8, 2012 12:24
-
-
Save ivoba/1768946 to your computer and use it in GitHub Desktop.
silverstripe installer using submodules
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
# 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 git@github.com:silverstripe/silverstripe-installer.git $1 | |
cd $1 | |
git checkout $2 | |
#we kill the .git because we want this repo just as starter and init our own repository (instead of export) | |
rm -rf .git | |
#set permissions for install | |
chmod 0777 assets assets/* | |
chmod 0666 .htaccess mysite/_config.php assets/*/* | |
git init | |
git submodule add git@github.com:silverstripe/silverstripe-cms.git cms | |
cd cms | |
git checkout $2 | |
cd .. | |
git add cms | |
git commit -m "checked out submodule cms to $2" | |
git submodule add git@github.com:silverstripe/sapphire.git sapphire | |
cd sapphire | |
git checkout $2 | |
cd .. | |
git add sapphire | |
git commit -m "checked out submodule sapphire to $2" | |
# add common modules | |
git submodule add git://github.com/unclecheese/Uploadify.git uploadify | |
git submodule add git://github.com/unclecheese/DataObjectManager.git dataobject_manager | |
git submodule add git://github.com/silverstripe/silverstripe-userforms.git userform | |
git submodule init | |
git submodule update | |
git add . | |
git commit -m "Initial Commit" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment