Skip to content

Instantly share code, notes, and snippets.

@stepheneb
Created April 14, 2010 19:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stepheneb/366216 to your computer and use it in GitHub Desktop.
Save stepheneb/366216 to your computer and use it in GitHub Desktop.
# SproutCore development setup
#
# Setup a working directory for sproutcore development with the latest code.
# This setup is useful if you want to be able to easily view and/or edit the
# sproutcore libraries themselves while doing development.
#
# Stephen Bannasch, 2010 04 14
# file: sproutcore_dev_setup.sh
#
# source sproutcore_dev_setup.sh
#
mkdir sc; cd sc
git clone git://github.com/sproutit/sproutcore.git sproutcore-git
git clone git://github.com/sproutit/sproutcore-abbot.git sproutcore-abbot-git
git clone git://github.com/etgryphon/sproutcore-ui.git sproutcore-ui-git
export SPROUTCORE_DEV=`pwd`
# Add the path the abbot/bin to the beginning of your PATH to access the
# sproutcore development executables: sc-server, sc-gen, etc.
# Normally you'd put something this in your ~/.bash_profile or ~/.bash_rc
export PATH=$SPROUTCORE_DEV/sproutcore-abbot-git/bin:$PATH
# Entering: 'which sc-server' should display the path to sc-server in sproutcore-abbot-git/bin
# demos
# In the sample and demo code below the README often asks you to use git to clone
# sproutcore or scui into the frameworks dir. In this script you are cloning from
# the repos initially cloned on your local computer -- makes install faster and
# take less space.
#
# After installing startup a server with: sc-server.
# The root of the SC system running the app will be be at:
#
# http://0.0.0.0:4020/
#
# This will usually show a selection with one or more apps along with tests and docs.
#
# sc-server takes the same options as mongrel so you can start
# several different SC apps like this:
#
# cd demos/sproutcore-samples; sc-server --port=4021
# cd demos/scui-samples; sc-server --port=4022
mkdir demos
# demo: sproutcore-samples
cd $SPROUTCORE_DEV/demos
git clone git://github.com/sproutit/sproutcore-samples.git sproutcore-samples-git
cd sproutcore-samples-git
mkdir frameworks; cd frameworks
git clone $SPROUTCORE_DEV/sproutcore-git sproutcore
cd ..
# fyi: generate the documentation for sproutcore itself:
# sc-docs sproutcore/desktop
# open tmp/docs/sproutcore/desktop/index.html
# demo: scui-samples
cd $SPROUTCORE_DEV/demos
git clone git://github.com/etgryphon/scui-samples.git scui-samples-git
cd scui-samples-git
mkdir frameworks; cd frameworks
git clone $SPROUTCORE_DEV/sproutcore-ui-git scui
cd ..
# demo: linkit
cd $SPROUTCORE_DEV/demos
git clone git://github.com/etgryphon/linkit-demo.git linkit-demo-git
cd linkit-demo-git
mkdir frameworks; cd frameworks
git clone $SPROUTCORE_DEV/sproutcore-git sproutcore
git clone $SPROUTCORE_DEV/sproutcore-ui-git scui
cd ..
# demo: tasks
cd $SPROUTCORE_DEV/demos
git clone git://github.com/suvajitgupta/Tasks.git tasks-git
cd tasks-git/frameworks
git clone $SPROUTCORE_DEV/sproutcore-ui-git scui
git clone $SPROUTCORE_DEV/sproutcore-git sproutcore
# Tasks is using a specific version of sproutore
cd sproutcore
git reset --hard 725c490576519f26ab6f09195718750583920039
cd ../..
# see README for updates and the rest of the setup
cd $SPROUTCORE_DEV
#!/bin/sh
#
# update sproutcore, scui, and the demo apps
#
# running:
#
# cd /path/to/sc
# source update.sh
#
export SPROUTCORE_DEV=`pwd`
cd $SPROUTCORE_DEV/sproutcore-git; git pull
cd $SPROUTCORE_DEV/sproutcore-abbot-git; git pull
cd $SPROUTCORE_DEV/sproutcore-ui-git; git pull
# demo: sproutcore-samples
cd $SPROUTCORE_DEV/demos/sproutcore-samples-git; git pull
cd frameworks/sproutcore; git pull
# demo: scui-samples
cd $SPROUTCORE_DEV/demos/scui-samples-git
cd frameworks/scui; git pull
# demo: linkit
cd $SPROUTCORE_DEV/demos/linkit-demo-git
cd frameworks/sproutcore; git pull
cd ../scui; git pull
# demo: tasks
cd $SPROUTCORE_DEV/demos/tasks-git; git pull
cd frameworks/scui; git pull
cd $SPROUTCORE_DEV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment