repo.or.cz
/
msysgit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add a script to make the MSVC build more convenient
[msysgit.git]
/
bin
/
msvc-build
blob
eb2d20af7ab5410310d0244f847d5eba23bf743d
1
#!/bin/sh
2
3
set -e
4
5
cd
/
git
6
7
test -d
msvcgit || git clone git
://
repo.or.cz
/
msvcgit.git
8
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)"
14
15
16
cat
>
msvc-build.cmd
<< EOF
17
call msvcgit\\setup_32bit_env.cmd
18
call "
$vsvars
"
19
make MSVC=1
20
EOF
21
22
cmd
/
c msvc-build.cmd