#!/bin/sh -e

export GAG_GAG="${HOME}/.gag"
export GAG_ROOT_DIR="@PREFIX@/lib/gildas"
export GAG_PATH="${GAG_ROOT_DIR}/etc"
export GAG_EXEC_SYSTEM="@ARCH@-@OSNAME@-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/sched-30m ${*}
