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

Last change on this file since 1846 was 1846, checked in by yushan, 19 months ago

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

  • Property svn:executable set to *
File size: 674 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
23else
24echo "latest revision ... no need to compile"
25fi
Note: See TracBrowser for help on using the repository browser.