]> git.pld-linux.org Git - packages/closure-stylesheets.git/blob - get-source.sh
- drop obsolete and outdated manual inclusion of rpm macros
[packages/closure-stylesheets.git] / get-source.sh
1 #!/bin/sh
2 p=closure-stylesheets
3 fn=$p
4 svn=http://$p.googlecode.com/svn/trunk
5 dl="https://code.google.com/p/$p/downloads/list?can=2&colspec=Filename"
6
7 set -x
8 set -e
9
10 html() {
11         if [ -z "$html" ]; then
12                 html=$(lynx -width 1200 -dump -nolist "$dl")
13         fi
14         echo "$html" | tee debug.log
15 }
16
17 date=$(html | perl -ne '/'$fn'-(\d+).+jar/and print $1 and exit')
18 test -n "$date"
19
20 echo "Release: $date"
21
22 exit 1
23
24 d=$p-$date
25 if [ ! -d "$d" ]; then
26         svn export -q $svn@$rev $p-$date
27 fi
28
29 t=$d.tar.bz2
30 if [ ! -f "$t" ]; then
31         tar -cjf $t --exclude-vcs $d
32 fi
This page took 0.089595 seconds and 3 git commands to generate.