Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 5b3d81ba55
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 40 lines (26 sloc) 0.689 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
#!/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
Something went wrong with that request. Please try again.