Add a script to make the MSVC build more convenient
[msysgit.git] / bin / msvc-build
blobeb2d20af7ab5410310d0244f847d5eba23bf743d
1 #!/bin/sh
3 set -e
5 cd /git
7 test -d msvcgit || git clone git://repo.or.cz/msvcgit.git
9 vsvars=
10 type cl.exe 2> /dev/null ||
11 vsvars="$(ls -t \
12 "$PROGRAMFILES/Microsoft Visual Studio"*/Common7/Tools/vsvars32.bat |
13 head -n 1)"
16 cat > msvc-build.cmd << EOF
17 call msvcgit\\setup_32bit_env.cmd
18 call "$vsvars"
19 make MSVC=1
20 EOF
22 cmd /c msvc-build.cmd