Created
May 7, 2009 19:41
-
-
Save shillcock/108310 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| if [ ! "$1" = "" ] ; then | |
| 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment