#!/bin/sh

buildlist=('mythtv' 'mytharchive' 'mythbrowser' 'mythgallery' 'mythgame' 'mythmovies' 'mythmusic' 'mythnetvision' 'mythnews' 'mythvideo' 'mythweather' 'mythzoneminder' 'mythweb' 'myththemes' 'morethemes')

# clean up current directory
rm -f *~

# clean up mythtv directories
for i in `echo ${buildlist[@]:0}`
do
	echo "-- cleaning $i"
	cd ./$i

	# clean up everything
	rm -rf pkg src
	rm -f *~

	cd ..
done

echo "DONE!"