#!/bin/bash
mkdir -p deps && cd deps
git clone https://github.com/altmany/export_fig
git clone https://github.com/piermorel/gramm
git clone https://github.com/ICB-DCM/AMICI
cd AMICI; git reset --hard 35f18fe; cd ..
git clone https://github.com/ICB-DCM/PESTO
cd PESTO; git reset --hard 649f3d2; cd ..

matlab -r "addpath(genpath('/deps')); savepath"