Skip to content

Instantly share code, notes, and snippets.

@mgalang
Created May 14, 2012 11:17
Show Gist options
  • Save mgalang/2693418 to your computer and use it in GitHub Desktop.
Save mgalang/2693418 to your computer and use it in GitHub Desktop.
Basic installation script for Kohana 3.2
git init
git submodule add git://github.com/kohana/core.git system
git submodule add git://github.com/kohana/database.git modules/database
git submodule add git://github.com/kohana/userguide.git modules/userguide
git submodule add git://github.com/kohana/image.git modules/image
git submodule add git://github.com/kohana/codebench.git modules/codebench
git submodule add git://github.com/kohana/auth.git modules/auth
git submodule add git://github.com/kohana/pagination.git modules/pagination
git submodule add git://github.com/kohana/orm.git modules/orm
git submodule add git://github.com/zombor/KOstache.git modules/kostache
# git submodule add git://github.com/shadowhand/sprig.git modules/sprig
git submodule init
git commit -m 'Added initial submodules'
mkdir -p application/classes/{controller,model}
mkdir -p application/{config,views}
mkdir -m 0777 -p application/{cache,logs}
echo '[^.]*' > application/{logs,cache}/.gitignore
curl -o index.php https://raw.github.com/kohana/kohana/3.2/master/index.php
curl -o application/bootstrap.php https://raw.github.com/kohana/kohana/3.2/master/application/bootstrap.php
curl -o .htaccess https://raw.github.com/kohana/kohana/3.2/master/example.htaccess
git add index.php
git add application
git commit -m 'Added initial directory structure'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment