Made convience script to update all project (root proj, and all submodules) and push to repos
This commit is contained in:
parent
72ec1bd94a
commit
12b28dae24
18
utils/update-repos.sh
Executable file
18
utils/update-repos.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
## If user is not running this in the root of the project dir
|
||||
if [[ ! -d utils ]]; then
|
||||
## Change directory to project dir
|
||||
cd `dirname $1`
|
||||
cd ..
|
||||
fi
|
||||
|
||||
|
||||
MESSAGE="${1:?"Message not provided"}"
|
||||
|
||||
git submodule foreach "git add .; git commit -m '$MESSAGE'; git push"
|
||||
|
||||
git add .
|
||||
git commit -m "$MESSAGE"
|
||||
git push origin master
|
||||
git push gitserver master
|
Loading…
Reference in New Issue
Block a user