File: get_libtorrent.sh

package info (click to toggle)
deluge 1.3.15-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 20,756 kB
  • ctags: 3,121
  • sloc: python: 22,201; sh: 141; makefile: 22
file content (21 lines) | stat: -rwxr-xr-x 391 bytes parent folder | download | duplicates (3)
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=14
[ "$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