All pastes #196871 Raw Edit

Stuff

public text v1 · immutable
·published 2006-10-10 23:03 UTC
rendered paste body
#!/bin/bash

ORDER="imlib2-cvs eet-cvs edb-cvs imlib2_loaders-cvs epeg-cvs evas-cvs embryo-cvs ecore-cvs edje-cvs emotion-cvs ewl-cvs ephoto-cvs epsilon-cvs esmart-cvs e-cvs engrave-cvs e_utils-cvs examine-cvs enotes-cvs etk-cvs equate-cvs evfs-cvs entropy-cvs entice-cvs enterminus-cvs elicit-cvs eclair-cvs entrance-cvs e_modules-cvs"
cd /usr/src/
if [ -w .. ]
then
	echo "Beginning to make e17, this may take some time"
else
	echo "insufficent privilages"
	exit 1
fi


if [ -d e17 ]
then
	cd e17
else 
	rm e17 &>/dev/null
	mkdir e17
	cd e17
fi

for i in $ORDER; do
	if [ -d $i ]; then
		cd $i
	else
		rm $i &>/dev/null
		mkdir $i
		cd $i
	fi

	if [ -e PKGBUILD ]; then
		echo "PKGBUILD present"
	else
		wget -c http://aur.archlinux.org/packages/$i/$i/PKGBUILD 
	fi

	if [ $i = "evas-cvs" ]; then
		if [ -e e17.profile ]; then
			echo "e17.profile present"
		else
			wget -c http://aur.archlinux.org/packages/$i/$i/e17.profile
		fi
		if [ -e evas-cvs.install ]; then
			echo "evas-cvs.install present"
		else
			wget -c http://aur.archlinux.org/packages/$i/$i/evas-cvs.install
		fi
	fi

	if [ $i = "e-cvs" ]; then
		if [ -e e17.desktop ]; then
			echo "e17.desktop present"
		else
			wget -c http://aur.archlinux.org/packages/$i/$i/e17.desktop
		fi
	fi

	if [ $i = "entrance-cvs" ]; then
		if [ -e entranced ]; then
			echo "entranced present"
		else
			wget -c http://aur.archlinux.org/packages/$i/$i/entranced
		fi
        fi
	rm *.pkg* &>/dev/null
	versionpkg -f >/dev/null
	if [ $? -eq 1 ]; then
		echo Build of $i Fails, Continue?
		
		OPTIONS="Y N"
		select opt in $OPTIONS; do
		if [ "$opt" = "N"  ]; then
			echo done
                	exit 1
		elif [ "$opt" = "Y" ]; then
			echo Proceding with Build
		else
			clear
			echo Invalid Selection
                        echo Build of $i Fails, Continue?
		fi
		done
	else
		echo Build of $i complete
	fi 
	if pacman -Qs $i; then
		pacman --upgrade *.pkg*
	else
		pacman -A *.pkg* 
	fi
	cd /usr/src/e17
done