#!/bin/sh -e

export GAG_ROOT_DIR="@PREFIX@/lib/gildas"
export GAG_PATH="${GAG_ROOT_DIR}/etc"
export GAG_EXEC_SYSTEM="x86_64-darwin-gfortran"
if [ -z "\$PYTHONPATH" ]; then
  PYTHONPATH="${GAG_ROOT_DIR}/${GAG_EXEC_SYSTEM}/python"
else
  PYTHONPATH="${GAG_ROOT_DIR}/${GAG_EXEC_SYSTEM}/python:${PYTHONPATH}"
fi
export PYTHONPATH
export DYLD_LIBRARY_PATH=${GAG_ROOT_DIR}/${GAG_EXEC_SYSTEM}/lib/
exec ${GAG_ROOT_DIR}/${GAG_EXEC_SYSTEM}/bin/class ${*}
