"gitting" everything
Brian Paul
brian.paul at tungstengraphics.com
Fri Jul 14 08:43:05 PDT 2006
Matthieu,
I had to fix one glitch in your script.
The URL "git://anongit.freedesktop.org/git/xorg/./xserver" doesn't
work because of the "./" part.
Here's the updated function:
do_dir () {
dir=$1
if [ ! -d ${dir} ]; then
echo "creating ${dir}"
mkdir ${dir}
fi
for d in $2; do
if [ -d "${dir}/$d" ]; then
echo "${dir}/$d exists, pulling"
(cd "${dir}/$d" ; git pull)
else
echo "cloning ${dir}/${d}"
if [ ${dir} == '.' ] ; then
src="${gitbase}/$d"
else
src="${gitbase}/${dir}/$d"
fi
(cd "${dir}" ; git clone ${src})
fi
done
}
-Brian
More information about the xorg
mailing list