aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: bash script for downloading and compiling cvs version of amule  (Read 2063 times)

FreeToGo

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 65

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


« Last Edit: August 14, 2008, 11:13:58 PM by FreeToGo »
Logged
You can mock me. I can take it.

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: bash script for downloading and compiling cvs version of amule
« Reply #1 on: August 20, 2008, 06:16:13 AM »

It looks cool. I just replaced alex by wget. Thanks!
Logged