Last active
December 26, 2015 21:29
-
-
Save notmii/7216174 to your computer and use it in GitHub Desktop.
FuelPHP Framework Installer
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
branch=$1 | |
dir=$2 | |
git clone -b $branch git://github.com/fuel/fuel.git $dir | |
cd "$dir" | |
rm -rf .git \ | |
.gitmodules \ | |
*.md \ | |
docs \ | |
composer.phar \ | |
fuel/core \ | |
fuel/packages/* \ | |
fuel/LICENSE | |
git init | |
git submodule add git://github.com/fuel/core.git fuel/core/ | |
git submodule add git://github.com/fuel/oil.git fuel/packages/oil | |
git submodule add git://github.com/fuel/parser.git fuel/packages/parser | |
git submodule add git://github.com/fuel/email.git fuel/packages/email | |
git submodule add git://github.com/fuel/auth.git fuel/packages/auth | |
git submodule add git://github.com/fuel/orm.git fuel/packages/orm | |
git submodule foreach git checkout $branch | |
git submodule foreach git pull origin $branch | |
composer install | |
git add . | |
git commit -m "FuelPHP $branch Initial Commit" | |
php oil refine install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment