All pastes #635420 Raw Edit

Someone

public text v1 · immutable
#635420 ·published 2007-07-27 01:38 UTC
rendered paste body

#!/bin/sh
AUTOGEN_ARGS='--disable-nls --prefix=/usr/local'

echo
echo Updating compiz-fusion
echo

COMPIZ_FUSION="compiz bcop libcompizconfig compizconfig-python ccsm plugins-main plugins-extra emerald"

for i in $COMPIZ_FUSION; do 
	if [ -d $i ]; then
		cd $i 
		echo updating $i 
		GIT=`git pull` 
		echo $GIT
		if [ "$GIT" != "Already up-to-date." ]; then
			sleep 5
			echo "Rebuilding and installing $i..."
			case "$i" in
				ccsm)
					sudo python setup.py install --prefix=/usr/local
					;;
				compiz)
					./autogen.sh $AUTOGEN_ARGS --enable-librsvg && make clean &&  make && sudo make install
					;;
				*)
					./autogen.sh $AUTOGEN_ARGS && make clean &&  make && sudo make install
				;;
			esac
			echo "Finished with $i"
		fi
		cd ..
	else
		echo Directory $i does not exist
		sleep 5
	fi
done