2010-07-22 17:17:50 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# This script checks out libtorrent from subversion
|
|
|
|
#
|
|
|
|
|
|
|
|
SVN=$(which svn)
|
|
|
|
LT_URL=https://libtorrent.svn.sourceforge.net/svnroot/libtorrent
|
|
|
|
VERSION=14
|
|
|
|
[ "$1" != "" ] && VERSION=$1
|
|
|
|
BRANCH=branches/RC_0_$VERSION
|
|
|
|
|
2011-11-20 14:56:28 +00:00
|
|
|
if [ -z $SVN ]; then
|
|
|
|
echo "Please install an 'svn' client"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2010-07-22 17:17:50 +00:00
|
|
|
if [ -d libtorrent ]; then
|
|
|
|
$SVN up libtorrent
|
|
|
|
else
|
|
|
|
$SVN co $LT_URL/$BRANCH libtorrent
|
|
|
|
fi
|