10 --gui|
--dev|
--devenv|
--vs|
--visual-studio)
17 echo "Usage: $0 [--vs] [clean]" >&2
40 to_ignore
="$(git ls-files --other --exclude-standard msvcgit msvc-build.cmd)"
41 test -z "$to_ignore" ||
{
44 sed 's/^/\//' >> .git
/info
/exclude
47 test -d msvcgit || git clone git
://repo.or.cz
/msvcgit.git
50 type cl.exe
2> /dev
/null ||
52 "$PROGRAMFILES/Microsoft Visual Studio
"*/Common7/Tools/vsvars32.bat |
57 config_mak
=config.mak.bup.$$
&&
58 mv config.mak
$config_mak
60 cat > config.mak
<< EOF
61 CFLAGS += -Imsvcgit/32bits/include
62 LDFLAGS += -Lmsvcgit/32bits/lib
65 echo "call \"$vsvars\"" > msvc-build.cmd
68 echo 'make MSVC=1' >> msvc-build.cmd
70 echo 'perl contrib/buildsystems/generate -g Vcproj' >> msvc-build.cmd
71 echo 'start git.sln' >> msvc-build.cmd
76 test -z "$config_mak" ||
77 mv $config_mak config.mak