4 svn=http://$p.googlecode.com/svn/trunk
5 dl=https://code.google.com/p/$p/downloads/list?can=3
11 if [ -z "$html" ]; then
12 html=$(lynx -width 1200 -dump -nolist "$dl")
14 echo "$html" | tee debug.log
17 rev=$(html | perl -ne '/'$fn'-.+tar.*Buil[dt] at r?(\d+)/and print $1 and exit')
20 date=$(html | perl -ne '/'$fn'-(\d+).tar.gz.*Buil[dt] at r?'$rev'/and print $1')
24 if [ ! -d "$d" ]; then
25 svn export -q $svn@$rev $p-$date
29 if [ ! -f "$t" ]; then
30 tar -cjf $t --exclude-vcs $d