mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-30 16:10:44 +08:00
Merge pull request #2105 from mjwoods/mingw-w64-pwd
Use Windows paths in tests of mingw-w64 executables
This commit is contained in:
commit
1cb28a9e66
@ -5,6 +5,9 @@ if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
||||
|
||||
set -e
|
||||
|
||||
# Disable automatic path conversions in MINGW shell:
|
||||
export MSYS2_ARG_CONV_EXCL='*'
|
||||
|
||||
# We need to find the drive letter, if any
|
||||
DL=`${NCPATHCVT} -c -e / | sed -e 's|/cygdrive/\([a-zA-Z]\)/.*|\1|'`
|
||||
if test "x$DL" != x ; then
|
||||
@ -13,6 +16,7 @@ if test "x$DL" != x ; then
|
||||
DL="-d $DLL"
|
||||
fi
|
||||
|
||||
|
||||
testcase1() {
|
||||
T="$1"
|
||||
P="$2"
|
||||
|
@ -88,14 +88,11 @@ 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.
|
||||
if test "x${FP_ISMSYS}" = xyes || test "x${FP_ISCYGWIN}" = xyes ; then
|
||||
if test "x${MSYS2_PREFIX}" = x ; then
|
||||
MSYS2_PREFIX=`cygpath -w '/'`
|
||||
export MSYS2_PREFIX
|
||||
fi
|
||||
fi
|
||||
if test "x${FP_ISMINGW}" = xyes ; then
|
||||
alias pwd='pwd -W'
|
||||
|
||||
system=`uname`
|
||||
if test "x${system##MINGW*}" = x; then
|
||||
alias pwd='pwd -W'
|
||||
|
||||
fi
|
||||
|
||||
# We assume that TOPSRCDIR and TOPBUILDDIR are defined
|
||||
|
Loading…
Reference in New Issue
Block a user