Skip to content

Instantly share code, notes, and snippets.

@jasonm23
Created June 9, 2010 09:53
Show Gist options
  • Save jasonm23/431285 to your computer and use it in GitHub Desktop.
Save jasonm23/431285 to your computer and use it in GitHub Desktop.
#!/bin/bash
cat gproj | while read a
do
b=$(echo $a | sed 's/.*com\/p\/\(.*\)\//\1/');
c=http://$b.googlecode.com/svn/trunk;
curl -s -o tempcurl $a
lic=$(cat tempcurl | grep "Code license" | sed 's/Code license.*">\([^<]*\).*/\1/' | sed 's/<b>//')
echo "{ :name => \"${b}\", :licence => \"${lic}\", :homeurl => \"${a}\", :svnurl => \"${c}\", :sourcepath => \"$(svn ls $c | egrep -i 'src|source')\" },"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment