hyperf/bin/split.sh

37 lines
948 B
Bash
Raw Normal View History

2018-12-27 15:11:47 +08:00
#!/usr/bin/env bash
set -e
set -x
CURRENT_BRANCH="master"
function split()
{
SHA1=`./bin/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
2018-12-27 20:00:04 +08:00
remote config git@github.com:hyperf-cloud/config.git
remote di git@github.com:hyperf-cloud/di.git
remote dispatcher git@github.com:hyperf-cloud/dispatcher.git
remote framework git@github.com:hyperf-cloud/framework.git
remote grpc-server git@github.com:hyperf-cloud/grpc-server.git
remote http-server git@github.com:hyperf-cloud/http-server.git
remote memory git@github.com:hyperf-cloud/memory.git
remote utils git@github.com:hyperf-cloud/utils.git
2018-12-27 15:11:47 +08:00
split 'src/config' config
split 'src/di' di
split 'src/dispatcher' dispatcher
split 'src/framework' framework
split 'src/grpc-server' grpc-server
split 'src/http-server' http-server
split 'src/memory' memory
split 'src/utils' utils