mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-30 16:10:44 +08:00
Use Windows paths in tests of mingw executables
This commit is contained in:
parent
5cd17ba059
commit
92be01077f
@ -75,6 +75,16 @@ set -e
|
||||
# Allow global set -x mechanism for debugging.
|
||||
if test "x$SETX" = x1 ; then set -x ; fi
|
||||
|
||||
# On MINGW, bash and other POSIX utilities use a mounted root directory,
|
||||
# but executables compiled for Windows do not recognise the mount point.
|
||||
# Here we ensure that Windows paths are used in tests of Windows executables.
|
||||
system=`uname`
|
||||
if test "x${system##MINGW*}" = x; then
|
||||
PWDCMD='pwd -W'
|
||||
else
|
||||
PWDCMD='pwd'
|
||||
fi
|
||||
|
||||
# We assume that TOPSRCDIR and TOPBUILDDIR are defined
|
||||
# At the top of this shell script
|
||||
top_srcdir="$TOPSRCDIR"
|
||||
|
Loading…
Reference in New Issue
Block a user