Last change
on this file since 2510 was
1909,
checked in by yushan, 4 years ago
|
trunk : add reference generator and archievs
|
-
Property svn:executable set to
*
|
File size:
462 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | REF=reference |
---|
4 | REF_PREFIX=ref_ |
---|
5 | W_DIR=RUN_TEST_SUITE |
---|
6 | NC_FILE=*.nc |
---|
7 | REF_TAR=reference.tar.gz |
---|
8 | |
---|
9 | mkdir -p ${REF} |
---|
10 | |
---|
11 | for test in $(cd ${W_DIR} ; ls -d test_*/) |
---|
12 | do |
---|
13 | mkdir -p ${REF}/${REF_PREFIX}${test%%} |
---|
14 | for test_config in $(cd ${W_DIR} ; ls -d ${test%%/}/CONFIG_*) |
---|
15 | do |
---|
16 | mkdir -p ${REF}/${REF_PREFIX}${test_config%%} |
---|
17 | cp ${W_DIR}/${test_config%%}/${NC_FILE} ${REF}/${REF_PREFIX}${test_config%%} |
---|
18 | done |
---|
19 | done |
---|
20 | |
---|
21 | tar -zcvf ${REF_TAR} ${REF} |
---|
22 | rm -rf ${REF} |
---|
Note: See
TracBrowser
for help on using the repository browser.