#!/bin/sh -e

export GAG_GAG="${HOME}/.gag"
export GAG_ROOT_DIR="/opt/local/lib/gildas"
export GAG_PATH="${GAG_ROOT_DIR}/etc"
export GAG_EXEC_SYSTEM="x86_64-macosx-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 ${*}
