All pastes #635401 Raw Edit

Mine

public text v1 · immutable
#635401 ·published 2007-07-27 01:24 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"
EXTRAS="colorfilter examples fakeargb makefile python shift screensaver"

for i in $COMPIZ_FUSION; do 
	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 ..
done

echo
echo Updating miscellaneous bits and pieces
echo


for i in $EXTRAS; do
	cd $i
	echo updating $i 
	GIT=`git pull` 
	echo $GIT
	if [ "$GIT" != "Already up-to-date." ]; then
		cd $i
		case "$i" in
			makefile)
				;;
			*)
				make clean && make install
				;;
			esac
	fi
	cd ..
done