#!/bin/bash
# -I include paths separated by \
# -g source files separated by space
# -L library paths separated by \
# -l libraries
# -o output file
OPSYS=`uname`
ARCH=`uname -m`
CWD="."
DIRNAM="CYGWIN"

#echo "OPSYS="$OPSYS
#echo "ARCH="$ARCH

shopt -s nocasematch

if [[ ($OPSYS == Darwin) ]]; then
  DIRNAM=MAC
elif [[ ($OPSYS == HP-UX) ]]; then
  DIRNAM=HPUX
elif [[ ($OPSYS == SunOS) ]]; then
  DIRNAM=SUN
elif [[ ($OPSYS == Linux) ]]; then
  DIRNAM=LINUX
elif [[ ($OPSYS == *"CYGWIN"*) ]]; then
  DIRNAM=CYGWIN
else
  DIRNAM=UNKNOWN
fi

if [[ ($ARCH == x86_64) ]]; then
  DIRNAM=${DIRNAM}64
fi


#export HDF5_PLUGIN_PATH=/users/boesecke/programs/hdf5/LINUX64/hdf5/plugins:/usr/lib/x86_64-linux-gnu/hdf5/plugins

export HDF5_PLUGIN_PATH=/users/boesecke/programs/hdf5/${DIRNAM}/hdf5/plugins:$HDF5_PLUGIN_PATH

echo "HDF5_PLUGIN_PATH="$HDF5_PLUGIN_PATH
