#!/usr/bin/env bash
set -e
set -x
CURRENT_BRANCH="master"
function split()
{
SHA1=`./build/splitsh-lite --prefix=$1`
git push $2 "$SHA1:refs/heads/$CURRENT_BRANCH" -f
}
function remote()
{
git remote add $1 $2 || true
}
git pull origin $CURRENT_BRANCH
remote view
[email protected]:dframe/view.git
remote token
[email protected]:dframe/token.git
remote loader
[email protected]:dframe/loader.git
remote router
[email protected]:dframe/router.git
remote cron
[email protected]:dframe/cron.git
remote asset
[email protected]:dframe/asset.git
remote console
[email protected]:dframe/console.git
remote config
[email protected]:dframe/config.git
split 'src/View' view
split 'src/Token' token
split 'src/Loader' loader
split 'src/Router' router
split 'src/Cron' cron
split 'src/Asset' asset
split 'src/Console' console
split 'src/Config' config