source: XIOS/dev/dev_trunk_omp/xios_test_suite/COMPILE/compile_jeanzay_local @ 1846

Last change on this file since 1846 was 1846, checked in by yushan, 4 years ago

dev_trunk_omp : launch local compile and test iff last-changed-revision >= revision

  • Property svn:executable set to *
File size: 668 bytes
Line 
1#!/bin/bash
2set -x
3export revision=$(svn info --show-item revision ../.. 2>&1)
4export server_revision=$(svn info --show-item last-changed-revision http://forge.ipsl.jussieu.fr/ioserver/svn/XIOS/dev/dev_trunk_omp 2>&1)
5
6if (( ${server_revision} >= ${revision} ))
7then
8
9python config_compile.py
10
11sbatch --wait job_compile_jeanzay.sh
12
13build_dir=${xios_test_suite_repository}/BUILD
14mkdir -p $build_dir ; CHMOD $build_dir
15mkdir -p ${build_dir}/build_${xios_machine_name}
16
17cp build_*.txt ${build_dir}/build_${xios_machine_name}
18CHMOD -R ${build_dir}/build_${xios_machine_name}
19
20bash -c "python ./generate_compile.py"
21else
22
23echo "latest revision ... no need to compile"
24fi
Note: See TracBrowser for help on using the repository browser.