#!/bin/bash

REPO="git://git.gnome.org"

if [ "x$1" = "x" ]
then
	echo "You must supply the directory name."
	exit 1
fi

if [ ! -d "$1" ]
then
	# Check out tree
	echo "Checking out $1"
	mkdir -p $1
	git clone $REPO/$1
else
	# Update the GIT source tree.
	echo "Retrieving $1"
	cd $1
	git pull --rebase
fi

