Kelly, I'm struggling with getting a windows build env setup on a 64 bit Windows 2003 + VS 2010. I replaced some of my hackerly with your script and got further than I was before. So it gets my vote.
Now I've reached the point where my build fails with "unresolved external symbol __imp_FT_Library_Version referenced in function main" which apparently requires I build freetype via VisualStudio... Steve From: "Kelly O'Hair" <kelly.oh...@oracle.com> To: build-dev@openjdk.java.net Date: 19/12/2010 19:29 Subject: Need reviewer: Add vsvars.sh script to jdk7 repo Sent by: build-dev-boun...@openjdk.java.net Need reviewer: Add vsvars.sh script to jdk7 repo A while back I created a Windows shell script that could be used to setup your environment variables for Visual Studio compiler usage. The VS product itself provides a bat file to help do this, but no shell script. This vsvars.sh script leverages the supplied VS bat files for shell users. See my old blog: http://blogs.sun.com/kto/entry/windows_visual_studio_stupid_pet This vsvars.sh script works with CYGWIN or MKS, and both styles of shell (csh and sh) environment variable setting. It's not super fast so it should not be used on every shell script startup, but can be used to help automate builds on Windows or initialize your first shell environment. If you have VS2010, to see what it generates as output just run: vsvars.sh -v10 To setup your environment you would run: eval `vsvars.sh -v10` It works with the older VS releases, but that is quickly becoming uninteresting for jdk7, however this same script can be used for the jdk6 releases that use VS2003 (-v7). 6909331: Add vsvars.sh to the jdk repository (handy cygwin way to get vcvars32.bat run) http://cr.openjdk.java.net/~ohair/openjdk7/vsvars/webrev/ -kto