awips2/nativeLib/rary.cots.hdf5/examples/runExample.sh.in
root 06a8b51d6d Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: 64fa9254b946eae7e61bbc3f513b7c3696c4f54f
2012-01-06 08:55:05 -06:00

38 lines
1.3 KiB
Bash

#!/bin/sh
#****************************************************************************
#* NCSA HDF *
#* National Comptational Science Alliance *
#* University of Illinois at Urbana-Champaign *
#* 605 E. Springfield, Champaign IL 61820 *
#* *
#* For conditions of distribution and use, see the accompanying *
#* java-hdf5/COPYING file. *
#* *
#****************************************************************************/
## These paths are taken from the configure for the Make
## This program checks that the libraries are installed
## in these paths.
##
## Edit these paths to debug
##
JH5INSTALLDIR=@JH5INST@
RM=@RM@
LIBDIR=$JH5INSTALLDIR"/lib"
CLASSPATH=".:"$LIBDIR"/jhdf5.jar"
LD_LIBRARY_PATH=$LIBDIR"/@JAVATARG@:"$LIBDIR
DYLD_LIBRARY_PATH=$LIBDIR"/@JAVATARG@:"$LIBDIR
export CLASSPATH
export LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH
@JAVA@ -Djava.library.path=$LD_LIBRARY_PATH "$1" > "$1".out
if diff "$1".out testfiles/"$1".txt > /dev/null;
then exit 0
else exit 1
fi