#!/bin/bash
set -x 
echo ${xios_root}
export revision=$(svn info --show-item revision ${xios_root} 2>&1)
python config_compile.py

sbatch --wait job_compile_jeanzay.sh

build_dir=${xios_test_suite_repository}/BUILD
mkdir -p $build_dir ; CHMOD $build_dir
mkdir -p ${build_dir}/build_${xios_machine_name}

cp build_*.txt ${build_dir}/build_${xios_machine_name}
CHMOD -R ${build_dir}/build_${xios_machine_name}

bash -c "python ./generate_compile.py"
# copy_to_forge compile_${xios_machine_name}_info.js

