Created
February 24, 2009 22:32
-
-
Save tghw/69839 to your computer and use it in GitHub Desktop.
This file contains 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 | |
USER=user | |
cd ~/src/clones/ | |
for DIR in *; do | |
if [ -d $DIR ]; then | |
cd $DIR | |
cd source | |
if [ -d .git ]; then | |
git pull | |
elif [ -d .bzr ]; then | |
bzr pull | |
elif [ -d .svn ]; then | |
svn up | |
else | |
echo "$DIR is not a known repository type." | |
fi | |
cd .. | |
hg convert source hg | |
cd hg | |
hg push ssh://hg@bitbucket.org/$USER/$DIR/ | |
cd .. | |
cd .. | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment