aMule Forum

English => aMule Help => Topic started by: FreeToGo on August 14, 2008, 11:10:31 PM

Title: bash script for downloading and compiling cvs version of amule
Post by: FreeToGo on August 14, 2008, 11:10:31 PM
Below is a bash script for downloading and compiling cvs version of amule.

Hope someone will find it useful

Regards,

3togo

Code: [Select]

#!/bin/bash

updatemule () {
wdir=~
time_start=`date +%s`
OneDayAgo=$(date --date='1 days ago'  +%Y%m%d)
name=aMule-CVS-$OneDayAgo.tar.bz2
cd $wdir/Desktop/temp
rm amule-cvs -Rf
axel http://www.hirnriss.net/files/cvs/${name}
tar xvf $name
cd amule-cvs
./configure --enable-optimize --disable-debug --enable-amule-gui \
--prefix=/usr --enable-geoip
#      --enable-amule-daemon
make -j 4 && sudo make install
cd ..
rm aMule*.tar.bz2
time_end=`date +%s`
time_exec=`expr $(( $time_end - $time_start ))`
echo "Execution time is $time_exec seconds"
}

updatemule


Title: Re: bash script for downloading and compiling cvs version of amule
Post by: skolnick on August 20, 2008, 06:16:13 AM
It looks cool. I just replaced alex by wget. Thanks!