Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Add a script to make the MSVC build more convenient
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Nov 1, 2011
1 parent 33cc102 commit 3142da4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions bin/msvc-build
@@ -0,0 +1,22 @@
#!/bin/sh

set -e

cd /git

test -d msvcgit || git clone git://repo.or.cz/msvcgit.git

vsvars=
type cl.exe 2> /dev/null ||
vsvars="$(ls -t \
"$PROGRAMFILES/Microsoft Visual Studio"*/Common7/Tools/vsvars32.bat |
head -n 1)"


cat > msvc-build.cmd << EOF
call msvcgit\\setup_32bit_env.cmd
call "$vsvars"
make MSVC=1
EOF

cmd /c msvc-build.cmd

0 comments on commit 3142da4

Please sign in to comment.