source: XIOS/dev/dev_trunk_omp/xios_test_suite/COMPILE/compile_irene @ 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: 727 bytes
Line 
1#!/bin/bash
2
3set -x
4
5export revision=$(svn info --show-item revision ../.. 2>&1)
6export server_revision=$(svn info --show-item last-changed-revision http://forge.ipsl.jussieu.fr/ioserver/svn/XIOS/dev/dev_trunk_omp 2>&1)
7
8if (( ${server_revision} >= ${revision} ))
9then
10python config_compile.py
11
12ccc_msub -E "--wait" job_compile_irene.sh
13
14build_dir=${xios_test_suite_repository}/BUILD
15mkdir -p $build_dir ; CHMOD $build_dir
16mkdir -p ${build_dir}/build_${xios_machine_name}
17
18cp build_*.txt ${build_dir}/build_${xios_machine_name}
19CHMOD -R ${build_dir}/build_${xios_machine_name}
20
21bash -c "python ./generate_compile.py"
22
23copy_to_thredds compile_${xios_machine_name}_info.js
24
25else
26echo "latest revision ... no need to compile"
27fi
Note: See TracBrowser for help on using the repository browser.