Commit f0958edc authored by Pablo Toharia's avatar Pablo Toharia

Added git-status rule.

parent 123cae3b
src
*~
doc/html
doc/latex
*Makefile*
*.orig
CMake/common
.ciscript
ci.*
jambs*
#*
Debug
Release
RelWithDebInfo
......@@ -2,7 +2,7 @@
git_subproject(vmmlib https://github.com/Eyescale/vmmlib.git master)
git_subproject(Deflect https://github.com/BlueBrain/Deflect master)
git_subproject(zeq https://github.com/HBPVIS/zeq master)
git_subproject(Lunchbox https://github.com/Eyescale/Lunchbox.git master )
git_subproject(Lunchbox https://github.com/Eyescale/Lunchbox.git master)
git_subproject(Brion https://github.com/BlueBrain/Brion.git master)
git_subproject(BBPSDK git@gitlab.gmrv.es:bbp/bbpsdk.git master )
git_subproject(gmrvzeq git@gitlab.gmrv.es:nsviz/gmrvzeq.git master)
......@@ -10,5 +10,6 @@ git_subproject(fires git@gitlab.gmrv.es:retrieval/fires.git master)
git_subproject(nsol git@gitlab.gmrv.es:nsviz/nsol.git master)
git_subproject(nore git@gitlab.gmrv.es:nsviz/nore.git master)
git_subproject(neuroscheme git@gitlab.gmrv.es:nsviz/neuroscheme.git master)
git_subproject(prefr git@gitlab.gmrv.es:nsviz/prefr.git master)
git_subproject(neurolots git@gitlab.gmrv.es:nsviz/neurolots.git master)
git_subproject(prefr git@gitlab.gmrv.es:nsviz/prefr.git glew)
git_subproject(neurolots git@gitlab.gmrv.es:nsviz/neurolots.git qneurolots)
git_subproject(spineret git@gitlab.gmrv.es:retrieval/spineret.git firesIntegration)
......@@ -28,3 +28,8 @@ set(VERSION_PATCH "0")
set(VERSION_ABI 1)
include(Common)
add_custom_target("git-status"
COMMAND ${CMAKE_SOURCE_DIR}/git-status.sh
WORKING_DIRECTORY "${COMMON_SOURCE_DIR}"
)
#!/bin/bash
if [ -z "$1" ]; then
sourcePath=.
else
sourcePath=$1
fi
echo "Git status for proyects in" $sourcePath
if [ -d $sourcePath ]; then
cd $sourcePath
else
echo "Directory " $sourcePath "does not exist"
exit
fi
for dir in `ls -d *`; do
if [ -d $dir/.git ]; then
cd $dir
status=`git status --porcelain`
branch=`git branch | grep ^\* | cut -d "*" -f2`
if [ -z "$status" ]; then
echo -e " \033[32m--" $dir "["$branch" ]" "\e[0m"
else
echo -e " \033[31m--" $dir "["$branch" ]" "\e[0m"
git status --porcelain
fi
cd ..
fi
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment