summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-05 17:11:03 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-05 17:11:03 +0300
commit541a09360b35780ae599da84ef74621c599e702a (patch)
tree4ad1839cbaec62e49204ed120ea60d16c2cc31aa
parent7d6463bc19b1efad16ce12d6accd7c2843974c1a (diff)
downloadall-541a09360b35780ae599da84ef74621c599e702a.tar.gz
all-541a09360b35780ae599da84ef74621c599e702a.tar.bz2
all-541a09360b35780ae599da84ef74621c599e702a.tar.xz
all-541a09360b35780ae599da84ef74621c599e702a.zip
Add script for run any git command on all repos.
New script: git.sh
-rwxr-xr-xgit.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/git.sh b/git.sh
new file mode 100755
index 0000000..88283c0
--- /dev/null
+++ b/git.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+function status {
+ if [ ! -d "$1" ]; then
+ return
+ fi
+ DIR=`pwd`
+ cd "$1"
+ echo "$2:"
+ git $CMD
+ cd $DIR
+}
+
+CMD="$1"
+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
+status music music