#! /bin/sh # # Evolution from CVS wrapper script # by Philip Van Hoof # More information can be found here: # http://freax.be/wiki/index.php/Compiling_Evolution_from_CVS # # Put this file in your PATH and adapt the prefix and version # variables below this comment # prefix=/opt/evo version=2.2 # # prefix=/usr/local # version=2.3 # # Note: To know which version you just compiled, # in the directory where you checked out evolution # # cd evolution # grep "BASE_VERSION=" configure.in | cut -d "=" -f 2 # # Hint prefix=`grep "^prefix=" $HOME/cvs/gnome/evolution/evolution-plugin.pc | cut -d "=" -f 2` version=`grep "BASE_VERSION=" $HOME/cvs/gnome/evolution/configure.in | cut -d "=" -f 2` # # The rest of the script needs no adaptations # function strstr () { [ ${#2} -eq 0 ] && { echo "$1" ; return 0; } case "$1" in *$2*) ;; *) return 1;; esac first=${1/$2*/} echo "${1##$first}" } substr=`strstr "$prefix/lib/bonobo/servers" $BONOBO_ACTIVATION_PATH` if test x"$substr" != x"$prefix/lib/bonobo/servers" then killall -9 bonobo-activation-server export BONOBO_ACTIVATION_PATH=$prefix/lib/bonobo/servers:$BONOBO_ACTIVATION_PATH fi substr=`strstr "$prefix/lib" $LD_LIBRARY_PATH` if test x"$substr" != x"$prefix/lib" then export LD_LIBRARY_PATH=$prefix/lib:/usr/lib/evolution/$version/:/usr/lib/mozilla-firefox/:$LD_LIBRARY_PATH fi substr=`strstr "$prefix/bin/:$prefix/libexec/" $PATH` if test x"$substr" != x"$prefixbin/:$prefix/libexec/" then export PATH=$prefix/bin/:$prefix/libexec/:$PATH fi $prefix/bin/evolution-$version $1 $2 $3 $4 $5