::
:: Getting latest libcurl using Git
::
:: First get the whole tree:
::  md Git-latest
::  git clone git://github.com/bagder/curl.git Git-latest

@echo off
setlocal
on break (echo quitting %+ quit)

iff not isdir Git-latest then
  echo Run "%@full[%0]" only from libcurl base directory.
  quit
endiff

cd Git-latest
attrib +h .gitignore /sq >&> NUL

::
:: Why does these fall outside Git control?
::
*del /k lib\Makefile.vc6 src\Makefile.vc6 winbuild\Makefile.vc >&>2

echo Running "git pull ..."

git pull

if %? != 0 (echo Git error %? %+ quit)

cd ..
echos Making diff file Git-latest/curl.diff ...
diff -r . Git-latest > Git-latest/curl.diff
echo .
endlocal

cd Git-latest
dir /mk curl.diff





