10 --gui|
--dev|
--devenv|
--vs|
--visual-studio)
17 echo "Usage: $0 [--vs] [clean]" >&2
40 test -d msvcgit || git clone git
://repo.or.cz
/msvcgit.git
43 type cl.exe
2> /dev
/null ||
45 "$PROGRAMFILES/Microsoft Visual Studio
"*/Common7/Tools/vsvars32.bat |
50 config_mak
=config.mak.bup.$$
&&
51 mv config.mak
$config_mak
53 cat > config.mak
<< EOF
54 CFLAGS += -Imsvcgit/32bits/include
55 LDFLAGS += -Lmsvcgit/32bits/lib
58 echo "call \"$vsvars\"" > msvc-build.cmd
61 echo 'make MSVC=1' >> msvc-build.cmd
63 echo 'perl contrib/buildsystems/generate -g Vcproj' >> msvc-build.cmd
64 echo 'start git.sln' >> msvc-build.cmd
69 test -z "$config_mak" ||
70 mv $config_mak config.mak