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