# Contributor: soreau <oreaus@gmail.com># This script compiles cairo-dock from SVN.# Cairo-dock can be found at:# http://developer.berlios.de/projects/cairo-dock/# Cairo-dock is released under the GPL.# You'll need at least the following to build this successfully:# libxxf86vm vte subversion autoconf automake intltool pkgconfig libtool perlxml# NOTE: This script sets /usr/local as the prefix (not /usr).# It also does a `sudo make install' so you might need to# stick around and type in the password when it brings up a prompt for that.# USAGE:-# Put this script in its own directory, eg. ~/cairo-dock# make it executable, and run it with: ./cdock_compile.sh# Where should the files be installed to? (Don't change this unless you know# what you're doing.)_installprefix="/usr/local"# Where is the SVN repo located? (You shouldn't normally have to change this.)_svntrunk="http://svn.berlios.de/svnroot/repos/cairo-dock/trunk"# The directory name of cairo-dock itself_svncdock="cairo-dock"# And the directory name containing all the individual plugin subdirectories_svnplugs="plug-ins"### SCRIPT BEGINS BELOW #### Check if cairo-dock is the latest, if not, compile itif [ -d $_svncdock ] ; then cd $_svncdock svn update || return 1 echo "Cairo-Dock is up to date."else svn checkout $_svntrunk/$_svncdock || return 1 cd $_svncdockfiecho "Cairo-Dock checkout complete."echo "Compiling $_svncdock..."echo "Executing autoreconf..."autoreconf -isvfif [ $? -ne 0 ]; then echo "WARNING: $_svncdock failed during autoreconf!"else echo "Performing configure for $_svncdock..." CFLAGS="$CFLAGS -Wno-error" CXXFLAGS="$CXXFLAGS -Wno-error" ./configure --prefix=$_installprefix if [ $? -ne 0 ]; then echo "WARNING: $_svncdock did not pass pre-build checks! You might be missing some build dependencies." else echo "Making $_svncdock..." make if [ $? -ne 0 ]; then echo "WARNING: $a failed to build!" else echo "Installing $_svncdock..." sudo make install if [ $? -ne 0 ]; then echo "WARNING: Failed to install $_svncdock!" else echo "Successfully made and installed $_svncdock." fi fi fificd ..