From ad0db3a0b5ad68f5d8485f1e7ecf418a689b40cb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 5 Nov 2014 13:09:50 +0300 Subject: add script for push all repos if changes present. New script: pushall.sh --- pushall.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 pushall.sh (limited to 'pushall.sh') diff --git a/pushall.sh b/pushall.sh new file mode 100755 index 0000000..67bfe0a --- /dev/null +++ b/pushall.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +function status { + DIR=`pwd` + cd $1 + STR=`git status|grep "Your branch is ahead"` + if [[ -n ${STR} ]]; then + echo "pusing $1" + git push + fi + cd $DIR +} + +status . evol-all +status client-data client-data +status server-code server-code +status server-data server-data +status tools tools +status server-code/src/evol evol-hercules -- cgit v1.2.3-60-g2f50