summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-05 00:31:53 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-05 00:31:53 +0300
commitb75e2b591aded36228ba0fe31e959290f225c92f (patch)
tree9b8771c2f4e4f31f303c4702844218f26e5b5a3d
parent2c38ddd1c3326255cb1f92de388b4b5c3f331319 (diff)
downloadall-b75e2b591aded36228ba0fe31e959290f225c92f.tar.gz
all-b75e2b591aded36228ba0fe31e959290f225c92f.tar.bz2
all-b75e2b591aded36228ba0fe31e959290f225c92f.tar.xz
all-b75e2b591aded36228ba0fe31e959290f225c92f.zip
add script to show is any repo have changed files.
Script name: status.sh
-rwxr-xr-xstatus.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/status.sh b/status.sh
new file mode 100755
index 0000000..7d1f3bc
--- /dev/null
+++ b/status.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+function status {
+ DIR=`pwd`
+ cd $1
+ STR=`git diff --name-only`
+ if [[ -n $STR ]]; then
+ echo -e "$2:\e[1;31m"
+ echo $STR
+ echo -e -n "\e[0m"
+ 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