Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 5b3d81ba55
executable file 40 lines (26 sloc) 0.689 kB
#!/bin/sh
if [ ! "$1" = "" ] ; then
while [ "`pwd`" != "/" -a "$GITREPO" = "" ] ; do
if [ -d ./lmkproject ] ; then
GITREPO=`pwd`/src
fi
cd ..
done
if [ "$GITREPO" = "" -a -d "$HOME/cm/src" ] ; then
GITREPO="$HOME/cm/src"
fi
if [ "$GITREPO" != "" ] ; then
echo "Git repositories found in $GITREPO"
echo "-=-=-=-=-=-=-=-=-=-=-=-=-=-"
DIRS="`/bin/ls -1 $GITREPO`"
for dir in $DIRS ; do
if [ -d $GITREPO/$dir/.git ] ; then
echo "$dir -> git $1"
cd $GITREPO/$dir ; git "$@"
echo
fi
done
else
echo "Git repositories not found."
fi
fi
Jump to Line
Something went wrong with that request. Please try again.