# instala fontes do google no ubuntu
# fonte: http://ubuntex.blogspot.com/2011/02/como-instalar-as-fontes-para-web-do.html
# Original author: Michalis Georgiou <[email protected]>
# Modified by Andrew http://www.webupd8.org <[email protected]>

sudo apt-get install mercurial


echo "Connecting to Mercurial server...."
if [ -d $_hgrepo ] ; then
	cd $_hgrepo
	hg pull -u || return 1
	echo "The local files have been updated."
	cd ..
	hg clone $_hgroot $_hgrepo || return 1
echo "Mercurial checkout done or server timeout"
sudo mkdir -p /usr/share/fonts/truetype/google-fonts/
find $PWD/$_hgrepo/ -name "*.ttf" -exec sudo install -m644 {} /usr/share/fonts/truetype/google-fonts/ \; || return 1
fc-cache -f > /dev/null
echo "done."