#!/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
exec ${GAG_ROOT_DIR}/${GAG_EXEC_SYSTEM}/bin/sic ${*}
