mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-01 19:27:39 +08:00
Added split shell
This commit is contained in:
parent
e41a57fcb8
commit
921aaa5fb6
37
bin/split.sh
Executable file
37
bin/split.sh
Executable 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
BIN
bin/splitsh-lite
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user