Skip to content

Instantly share code, notes, and snippets.

View pcdavid's full-sized avatar

Pierre-Charles David pcdavid

View GitHub Profile
@pcdavid
pcdavid / get-eclipse-sources.sh
Last active October 13, 2015 03:58 — forked from cbrun/get-eclipse-sources.sh
A quick (and dirty) script to clone all the repositories listed on git.eclipse.org
#!/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