mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-09 08:11:38 +08:00
25 lines
617 B
Bash
Executable File
25 lines
617 B
Bash
Executable File
#!/bin/sh
|
|
|
|
#X="-x"
|
|
#grind="checkleaks"
|
|
|
|
# if this is part of a distcheck action, then this script
|
|
# will be executed in a different directory
|
|
# than the one containing it; so capture the path to this script
|
|
# as the location of the source directory.
|
|
srcdir=`dirname $0`
|
|
cd $srcdir
|
|
srcdir=`pwd`
|
|
|
|
# compute the build directory
|
|
# Do a hack to remove e.g. c: for CYGWIN
|
|
builddir=`pwd`/..
|
|
# Hack for CYGWIN
|
|
if [ `uname | cut -d "_" -f 1` = "MINGW32" ]; then
|
|
srcdir=`pwd | sed 's/\/c\//c:\//g'`
|
|
builddir="$srcdir"/..
|
|
fi
|
|
cd ${builddir}/ncdap_test
|
|
|
|
exec $X ${srcdir}/tst_ncdap.sh "$srcdir" "$builddir" "file4" $grind
|