How to compile git
WORK IN PROGRESS
step 0
install cygwin:
- install from internet
- root directory C:\cygwin, all users, unix/binary
- local package directory C:\cygwin-files
- use IE5 settings
- add http://ctm.crouchingtigerhiddenfruitbat.org/pub/cygwin/circa-legacy/2009/12/27/103117 to available download sites
step 1 download deps and git with source (takes a while)
build deps:
cygport gcc
curl-devel openssh libiconv tcltk
if you want to rebuild the docs for some reason:
asciidoc xmlto
maybe dont need to specify
docbook-xsl
git SOURCE ONLY:
git
step 2 prepare the source (takes a while)
cd /usr/src
cygport git-1.6.1.2-1.cygport prep
step 3
Compile and install:
cd /usr/src/git
make prefix=/usr gitexecdir=/usr/sbin/git-core NO_MMAP=1 NO_PTHREADS=1 NO_PREAD=1 INSTALLDIRS=vendor install
Optional man pages (takes a very long time):
make prefix=/usr mandir=/usr/share/man ASCIIDOC8=1 install-man
Post-Install:
cp cyggit.dll /usr/bin/
./CYGWIN-PATCHES/postinstall.sh
exit
Finally, restart Cygwin and git should be working




