summaryrefslogtreecommitdiffstats
path: root/src/fedora-getsvn
blob: 72f08abebd567791275ba2e4cd17c6399311f952 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/sh

if [ $# -ne 3 ];
then
	echo "Usage: $0 <project> <url> <revision>"
	exit 1
fi

project=$1
url=$2
rev=$3

tmpdir=`mktemp -d`
curdir=`pwd`

(
    cd ${tmpdir}
    LANG=C TZ=GMT svn export ${url} -r ${rev} ${project}
    tar cjvf ${curdir}/${project}-svn${rev}.tar.bz2 ${project}
)

rm -rf ${tmpdir}