aboutsummaryrefslogtreecommitdiff
path: root/updategit.bat
diff options
context:
space:
mode:
Diffstat (limited to 'updategit.bat')
-rw-r--r--updategit.bat32
1 files changed, 15 insertions, 17 deletions
diff --git a/updategit.bat b/updategit.bat
index dbf869cd6..1287854f3 100644
--- a/updategit.bat
+++ b/updategit.bat
@@ -1,24 +1,22 @@
setlocal on
-goto noclone
+set path=c:\program files\git\bin;%path%
-git clone git://anongit.freedesktop.org/xorg/xserver
-git clone git://anongit.freedesktop.org/xcb/libxcb
-git clone git://anongit.freedesktop.org/xcb/proto libxcb/xcb-proto
-git clone git://anongit.freedesktop.org/xkeyboard-config
-git clone git://anongit.freedesktop.org/xorg/lib/libX11
-git clone git://anongit.freedesktop.org/xorg/lib/libXdmcp
-git clone git://anongit.freedesktop.org/xorg/lib/libXext
-git clone git://anongit.freedesktop.org/xorg/lib/libfontenc
-git clone git://anongit.freedesktop.org/xorg/lib/libXinerama
-git clone git://anongit.freedesktop.org/xorg/lib/libXau
-git clone git://anongit.freedesktop.org/xorg/app/xkbcomp
-git clone git://anongit.freedesktop.org/pixman
-git clone git://anongit.freedesktop.org/xorg/proto/xextproto
-git clone git://anongit.freedesktop.org/xorg/proto/randrproto
+if not isdir xserver git clone git://anongit.freedesktop.org/xorg/xserver
+if not isdir libxcb git clone git://anongit.freedesktop.org/xcb/libxcb
+if not isdir libxcb/xcb-proto git clone git://anongit.freedesktop.org/xcb/proto libxcb/xcb-proto
+if not isdir xkeyboard-config git clone git://anongit.freedesktop.org/xkeyboard-config
+if not isdir libX11 git clone git://anongit.freedesktop.org/xorg/lib/libX11
+if not isdir libXdmcp git clone git://anongit.freedesktop.org/xorg/lib/libXdmcp
+if not isdir libXext git clone git://anongit.freedesktop.org/xorg/lib/libXext
+if not isdir libfontenc git clone git://anongit.freedesktop.org/xorg/lib/libfontenc
+if not isdir libXinerama git clone git://anongit.freedesktop.org/xorg/lib/libXinerama
+if not isdir libXau git clone git://anongit.freedesktop.org/xorg/lib/libXau
+if not isdir xkbcomp git clone git://anongit.freedesktop.org/xorg/app/xkbcomp
+if not isdir pixman git clone git://anongit.freedesktop.org/pixman
+if not isdir xextproto git clone git://anongit.freedesktop.org/xorg/proto/xextproto
+if not isdir randrproto git clone git://anongit.freedesktop.org/xorg/proto/randrproto
-:noclone
pushd .
-set path=c:\program files\git\bin;%path%
echo Updating xserver |& tee /a d:\updategit.log
pushd xserver |& tee /a d:\updategit.log
git pull |& tee /a d:\updategit.log