#!/bin/bash
export revision=$(svn info --show-item revision ../.. 2>&1)
export server_revision=$(svn info --show-item last-changed-revision http://forge.ipsl.jussieu.fr/ioserver/svn/XIOS/dev/dev_trunk_omp 2>&1)
if (( ${server_revision} >= ${revision} ))
then
ccc_msub -E "--wait" job_irene_local.sh 

bash -c "python generate_test.py"
else
echo "latest version ... no need to test"

fi

