-
-
Save pcdavid/4135601 to your computer and use it in GitHub Desktop.
A quick (and dirty) script to clone all the repositories listed on git.eclipse.org
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 | |
for offset in $(seq 0 50 650); do | |
lynx -dump "http://git.eclipse.org/c/?ofs=$offset" | egrep '^ +[0-9]+\. http://git.eclipse.org/.*.git/' | awk '{print $2}' | |
done | sort -u | grep -v 'www.eclipse.org' | sed -e 's%/c/%/gitroot/%' | while read repo; do | |
clear | |
if [ -d "$repo" ]; then | |
echo "Updating $repo..." | |
( cd $repo && git pull --ff-only ) | |
else | |
echo "Cloning $repo..." | |
git clone $repo | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment