Skip to content

Instantly share code, notes, and snippets.

@cbrun
Last active October 13, 2015 03:57
Show Gist options
  • Save cbrun/4135507 to your computer and use it in GitHub Desktop.
Save cbrun/4135507 to your computer and use it in GitHub Desktop.
A quick (and dirty) script to clone all the repositories listed on git.eclipse.org
#!/bin/bash
rm -f repos-list
for n in $(seq 0 50 600); do
wget -qO- http://git.eclipse.org/c/?ofs=$n | sed -n "s/.*href='\/c\/\([^ ]*\)'.*/\1/p" |grep -v '?' >> repos-list
done
cat repos-list |grep -v 'www.eclipse' | xargs -I {} -n1 git clone http://git.eclipse.org/gitroot/{}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment