mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
79 lines
2.7 KiB
Bash
Executable File
79 lines
2.7 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
set -x
|
|
|
|
CURRENT_BRANCH="main"
|
|
|
|
function split()
|
|
{
|
|
# git merge --strategy recursive --strategy-option subtree="$1" "$2/$CURRENT_BRANCH" --allow-unrelated-histories -m "Merge remote-tracking branch '$2/$CURRENT_BRANCH'"
|
|
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 flasher git@github.com:php-flasher/flasher.git
|
|
remote laravel git@github.com:php-flasher/flasher-laravel.git
|
|
remote symfony git@github.com:php-flasher/flasher-symfony.git
|
|
remote livewire git@github.com:php-flasher/flasher-livewire.git
|
|
|
|
remote toastr git@github.com:php-flasher/flasher-toastr.git
|
|
remote toastr-laravel git@github.com:php-flasher/flasher-toastr-laravel.git
|
|
remote toastr-symfony git@github.com:php-flasher/flasher-toastr-symfony.git
|
|
|
|
remote notyf git@github.com:php-flasher/flasher-notyf.git
|
|
remote notyf-laravel git@github.com:php-flasher/flasher-notyf-laravel.git
|
|
remote notyf-symfony git@github.com:php-flasher/flasher-notyf-symfony.git
|
|
|
|
remote sweet-alert git@github.com:php-flasher/flasher-sweet-alert.git
|
|
remote sweet-alert-laravel git@github.com:php-flasher/flasher-sweet-alert-laravel.git
|
|
remote sweet-alert-symfony git@github.com:php-flasher/flasher-sweet-alert-symfony.git
|
|
|
|
remote pnotify git@github.com:php-flasher/flasher-pnotify.git
|
|
remote pnotify-laravel git@github.com:php-flasher/flasher-pnotify-laravel.git
|
|
remote pnotify-symfony git@github.com:php-flasher/flasher-pnotify-symfony.git
|
|
|
|
remote noty git@github.com:php-flasher/flasher-noty.git
|
|
remote noty-laravel git@github.com:php-flasher/flasher-noty-laravel.git
|
|
remote noty-symfony git@github.com:php-flasher/flasher-noty-symfony.git
|
|
|
|
remote cli git@github.com:php-flasher/flasher-cli.git
|
|
remote cli-laravel git@github.com:php-flasher/flasher-cli-laravel.git
|
|
remote cli-symfony git@github.com:php-flasher/flasher-cli-symfony.git
|
|
|
|
split 'src/Prime' flasher
|
|
split 'src/Laravel' laravel
|
|
split 'src/Symfony' symfony
|
|
split 'src/Livewire' livewire
|
|
|
|
split 'src/Toastr/Prime' toastr
|
|
split 'src/Toastr/Laravel' toastr-laravel
|
|
split 'src/Toastr/Symfony' toastr-symfony
|
|
|
|
split 'src/Notyf/Prime' notyf
|
|
split 'src/Notyf/Laravel' notyf-laravel
|
|
split 'src/Notyf/Symfony' notyf-symfony
|
|
|
|
split 'src/SweetAlert/Prime' sweet-alert
|
|
split 'src/SweetAlert/Laravel' sweet-alert-laravel
|
|
split 'src/SweetAlert/Symfony' sweet-alert-symfony
|
|
|
|
split 'src/Pnotify/Prime' pnotify
|
|
split 'src/Pnotify/Laravel' pnotify-laravel
|
|
split 'src/Pnotify/Symfony' pnotify-symfony
|
|
|
|
split 'src/Noty/Prime' noty
|
|
split 'src/Noty/Laravel' noty-laravel
|
|
split 'src/Noty/Symfony' noty-symfony
|
|
|
|
split 'src/Cli/Prime' cli
|
|
split 'src/Cli/Laravel' cli-laravel
|
|
split 'src/Cli/Symfony' cli-symfony
|