Updated instructions to reflect the install via shell script. I referenced my fork till the changes are merged.

마누엘 2015-02-26 10:56:56 +01:00
parent 9777fb7af6
commit df985ccdcc

@ -6,19 +6,19 @@ As we are in the process of switching away from msysGit as our development envir
1. Install MSys2 from https://msys2.github.io/, into `C:/msys32` and `C:/msys64` (if you only want to build for one architecture, you can skip the other one). This will install three Shells into the Start Menu: the *MSys*, the *MinGW 32* and the *MinGW 64* Shell. To build Git, you should start the *MinGW* shell corresponding to the architecture of the installed MSys2.
2. Download and run [this file](https://raw.githubusercontent.com/git-for-windows/build-extra/master/setup-git-sdk.bat) in a `cmd` window in the top-level MSys2 directory (you need to close all MSys2 windows before that, so that the `msys-2.0.dll` file can be updated).
3. After you run the `setup-git-sdk.bat` the custom git-for-windows `msys2-runtime` got installed. Now it is time to fire up the *MinGW* shell and update the rest of the system and install the build dependencies. To update the system run `pacman -Su --noconfirm` and to install the dependencies run `pacman -S --noconfirm python less openssh patch make tar diffutils ca-certificates perl-Error perl perl-Authen-SASL perl-libwww perl-MIME-tools perl-Net-SMTP-SSL perl-TermReadKey winpty-git mingw-w64-<arch>-curl mingw-w64-<arch>-expat mingw-w64-<arch>-openssl mingw-w64-<arch>-tcl mingw-w64-<arch>-pcre`. \<arch\> is "i686" for the 32bit version.
2. Download [setup-git-sdk.bat](https://raw.githubusercontent.com/nalla/build-extra/master/setup-git-sdk.bat) and [setup-git-sdk.sh](https://raw.githubusercontent.com/nalla/build-extra/master/setup-git-sdk.sh) and put them in the the top-level MSys2 directory. Then run the `setup-git-sdk.bat` in a `cmd` window (you need to close all MSys2 windows before that, so that the `msys-2.0.dll` file can be updated). The `setup-git-sdk.bat` updates the `msys2-runtime` and will call the `setup-git-sdk.sh` file that will then install the git build dependencies via `pacman`.
# Build Git
1. Clone Git: `cd /usr/src/ && git clone https://github.com/git-for-windows/git`.
1. Open your corresponding *MinGW* Shell
2. Temporarily: In /usr/src/git/, check out the `update-to-2.3.0` branch: `git remote add -f dscho https://github.com/dscho/git && git checkout -t dscho/update-to-2.3.0`.
2. Clone Git: `cd /usr/src/ && git clone https://github.com/git-for-windows/git`.
3. Build Git: `make`.
3. Temporarily: In /usr/src/git/, check out the `update-to-2.3.0` branch: `git remote add -f dscho https://github.com/dscho/git && git checkout -t dscho/update-to-2.3.0`.
4. Run the test suite: `make test`
4. Build Git: `make`.
5. Run the test suite: `make test`
***