Fix permissions on Windows.

The windows 7 build generated some weird permission issues: the toplevel
directory had a 000 permission as well as all *.exe files.  Looks like
it is due to how cygwin translates the permissions of the C:\ drive.  A
way to get around this is to have a build directory with pre-set
permissions that cygwin likes, then have the build directory in it.

(This hack might be needed for the other build machine too at some point
in the future.)

Also add /c/Windows/system32 to the PATH, otherwise MS batch files fail
(with obscure errors).
This commit is contained in:
Eli Barzilay 2011-05-06 04:18:39 -04:00
parent e9683e1dd2
commit 8ce2ec7580

View File

@ -82,7 +82,7 @@ msets "/machines/D" "workdir=/var/tmp" "moveto=" "copytobak=" \
defbuild "pitcairn" "i386-win32" "test_gui=yes" \
"workdir=F:" # no "/..." path (that can get interpreted as a flag)
defbuild "pitcairn2" "x86_64-win32" "test_gui=yes" \
"workdir=C:" # same here
"workdir=C:/build" # same here (see also commit log!)
# The LDFLAGS is a workaround for a bug in Fink, see
# http://wiki.finkproject.org/index.php/Fink:Packaging:Preparing_for_10.5#OpenGL_Bug
defbuild "kauai" "ppc-darwin" "configure_args=--enable-xonx" \
@ -110,8 +110,10 @@ msets "/"
###############################################################################
### Initialize & Setup environment
ulimit -c 100000000
umask 002 # stuff that is created should be r/w by the group
# allow core dumps
ulimit -c unlimited
# make sure that everything is group-readable
umask 002
# get this script's name and path
cd "$(dirname "$0")"
@ -1370,6 +1372,8 @@ DO_WINDOWS_BUILD() {
/usr/bin/mount -c /
# ignore an occasional use of a dos-style file
export CYGWIN="$CYGWIN nodosfilewarning"
# needed for MS command-line utilities
export PATH="$PATH:/c/Windows/system32"
export TEMP="C:\\cygwin\\tmp" TMP="C:\\cygwin\\tmp"