Added split shell

This commit is contained in:
huangzhhui 2018-12-27 15:11:47 +08:00
parent e41a57fcb8
commit 921aaa5fb6
2 changed files with 37 additions and 0 deletions

37
bin/split.sh Executable file
View File

@ -0,0 +1,37 @@
#!/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
remote config git@github.com:hyperflex-cloud/config.git
remote di git@github.com:hyperflex-cloud/di.git
remote dispatcher git@github.com:hyperflex-cloud/dispatcher.git
remote framework git@github.com:hyperflex-cloud/framework.git
remote grpc-server git@github.com:hyperflex-cloud/grpc-server.git
remote http-server git@github.com:hyperflex-cloud/http-server.git
remote memory git@github.com:hyperflex-cloud/memory.git
remote utils git@github.com:hyperflex-cloud/utils.git
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

BIN
bin/splitsh-lite Executable file

Binary file not shown.