Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
stickz committed May 16, 2023
1 parent e7b4b7d commit e5b2630
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
38 changes: 19 additions & 19 deletions sources/build/prepare_lt_rakshasa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,27 @@ fi

# Apply source file patches based on the libtorrent version
case $version in
0.13.6)
patch -p1 < /etc/swizzin/sources/patches/rtorrent/openssl.patch >> $llog 2>&1
if pkg-config --atleast-version=1.14 cppunit; then
patch -p1 < /etc/swizzin/sources/patches/rtorrent/cppunit-libtorrent.patch >> $llog 2>&1
fi
patch -p1 < /etc/swizzin/sources/patches/rtorrent/bencode-libtorrent.patch >> $llog 2>&1
patch -p1 < /etc/swizzin/sources/patches/rtorrent/throttle-fix-0.13.6.patch >> $llog 2>&1
;;
0.13.6)
patch -p1 < /etc/swizzin/sources/patches/rtorrent/openssl.patch >> $llog 2>&1
if pkg-config --atleast-version=1.14 cppunit; then
patch -p1 < /etc/swizzin/sources/patches/rtorrent/cppunit-libtorrent.patch >> $llog 2>&1
fi
patch -p1 < /etc/swizzin/sources/patches/rtorrent/bencode-libtorrent.patch >> $llog 2>&1
patch -p1 < /etc/swizzin/sources/patches/rtorrent/throttle-fix-0.13.6.patch >> $llog 2>&1
;;

0.13.7)
patch -p1 < /etc/swizzin/sources/patches/rtorrent/throttle-fix-0.13.7-8.patch >> $llog 2>&1
patch -p1 < /etc/swizzin/sources/patches/rtorrent/openssl.patch >> $llog 2>&1
;;
0.13.7)
patch -p1 < /etc/swizzin/sources/patches/rtorrent/throttle-fix-0.13.7-8.patch >> $llog 2>&1
patch -p1 < /etc/swizzin/sources/patches/rtorrent/openssl.patch >> $llog 2>&1
;;

0.13.8)
if [[ $udns == "true" ]]; then
patch -p1 < /etc/swizzin/sources/patches/rtorrent/libtorrent-udns-0.13.8.patch >> $llog 2>&1
patch -p1 < /etc/swizzin/sources/patches/rtorrent/libtorrent-scanf-0.13.8.patch >> $llog 2>&1
fi
patch -p1 < /etc/swizzin/sources/patches/rtorrent/throttle-fix-0.13.7-8.patch >> $llog 2>&1
;;
0.13.8)
if [[ $udns == "true" ]]; then
patch -p1 < /etc/swizzin/sources/patches/rtorrent/libtorrent-udns-0.13.8.patch >> $llog 2>&1
patch -p1 < /etc/swizzin/sources/patches/rtorrent/libtorrent-scanf-0.13.8.patch >> $llog 2>&1
fi
patch -p1 < /etc/swizzin/sources/patches/rtorrent/throttle-fix-0.13.7-8.patch >> $llog 2>&1
;;
esac

# Generate source files for compile
Expand Down
4 changes: 2 additions & 2 deletions sources/build/prepare_xmlrpc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ rm_if_exists $tpath
touch $xlog
mkdir $tpath

svn co http://svn.code.sf.net/p/xmlrpc-c/code/advanced@$XMLRPC_REV $tpath >> $xlog 2>&1 || {
svn co https://github.com/mirror/xmlrpc-c/trunk/advanced@$XMLRPC_REV $tpath >> $xlog 2>&1;
svn co http://svn.code.sf.net/p/xmlrpc-c/code/advanced@$XMLRPC_REV $tpath >> $xlog 2>&1 || {
svn co https://github.com/mirror/xmlrpc-c/trunk/advanced@$XMLRPC_REV $tpath >> $xlog 2>&1
}

cd $tpath >> $xlog 2>&1
Expand Down
6 changes: 3 additions & 3 deletions sources/functions/rtorrent
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function sources_rtorrent() {
echo_info "Preparing source files"
# Prepare xmlrpc source files
xlog="/root/logs/xmlrpc.log"
xpath="/tmp/xmlrpc-c"
xpath="/tmp/xmlrpc-c"
bash "/etc/swizzin/sources/build/prepare_xmlrpc.sh" $xlog $xpath &
# Prepare libtorrent source files
llog="/root/logs/lt_rakshasa.log"
Expand All @@ -137,7 +137,7 @@ function log_deps_rtorrent() {
# Append output to swizzin log file and remove log files
rt_log_append "mktorrent" $mklog "build"
if [[ ${libudns} == "true" ]]; then
rt_log_append "libudns" $udnslog "build"
rt_log_append "libudns" $udnslog "build"
fi
rt_log_append "xmlrc" $xlog "prepare"
rt_log_append "libtorrent" $llog "prepare"
Expand Down Expand Up @@ -168,7 +168,7 @@ function rt_error_check() {
rm_if_exists $file
}

function build_xmlrpc-c() {
function build_xmlrpc-c() {
cd "/tmp/xmlrpc-c"
./configure --prefix=/usr --disable-cplusplus --disable-wininet-client --disable-libwww-client >> $log 2>&1 || {
echo_error "Something went wrong while configuring xmlrpc"
Expand Down

0 comments on commit e5b2630

Please sign in to comment.