Skip to content
Snippets Groups Projects
Commit 5fb67fa3 authored by Iosif Peterfi's avatar Iosif Peterfi
Browse files

Updated repos for release 2.0.0

parents 736127b7 98131cda
Branches local_testing
Tags 1.0.0
No related merge requests found
#!/bin/bash
function print_help () {
echo requieres arguments
echo "usage: $0 <command>
commands:
branch create new branch on each submodule
checkout checkout branch on each submodule
pull pull on all submodules
add add . on all submodules
status pull on all submodules
push pull on all submodules
pipeline-add pull on all submodules
pipeline-update pull on all submodules"
}
function git_foreach () {
git submodule foreach "git $@"
local cmd="git $@ || : "
git submodule foreach "$cmd"
}
if [ "$#" -lt 1 ]; then
......@@ -15,12 +24,23 @@ if [ "$#" -lt 1 ]; then
fi
case $1 in
branch | checkout | pull | add | status | commit | push)
branch | checkout | pull | status | commit | push)
git_foreach $@
;;
pipeline)
git submodule foreach "git submodule add -b main https://gitlab.mpcdf.mpg.de/mpdl-bloxberg/bloxberg-pipeline-template.git"
add)
git_foreach "add ."
;;
pipeline-add)
git_foreach "submodule add -b main https://gitlab.mpcdf.mpg.de/mpdl-bloxberg/bloxberg-pipeline-template.git"
;;
pipeline-update)
git_foreach "submodule foreach git pull"
git_foreach "add ."
git_foreach "commit -m 'updated pipeline'"
git_foreach "push"
;;
*)
......@@ -28,6 +48,3 @@ case $1 in
;;
esac
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment