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