summaryrefslogtreecommitdiffstats
path: root/get_libtorrent.sh
blob: 9481290768dcfe94b577294512a182f5641ba99a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
#
# This script checks out libtorrent from subversion
#

SVN=$(which svn)
LT_URL=https://libtorrent.svn.sourceforge.net/svnroot/libtorrent
VERSION=16
[ "$1" != "" ] && VERSION=$1
BRANCH=branches/RC_0_$VERSION

if [ -z $SVN ]; then
    echo "Please install an 'svn' client"
    exit 1
fi

if [ -d libtorrent ]; then
	$SVN up libtorrent
else
	$SVN co $LT_URL/$BRANCH libtorrent
fi