1 | #/usr/bin/ksh
|
---|
2 | #
|
---|
3 | # Script to generate test configuration files.
|
---|
4 | #
|
---|
5 |
|
---|
6 | config_base=grassaf_invert
|
---|
7 |
|
---|
8 | for ic in false true ; do
|
---|
9 |
|
---|
10 | if [[ $ic == false ]] ; then i=0 ; else i=1 ; fi
|
---|
11 |
|
---|
12 | for jc in false true ; do
|
---|
13 |
|
---|
14 | if [[ $jc == false ]] ; then j=0 ; else j=1 ; fi
|
---|
15 |
|
---|
16 | for kc in false true ; do
|
---|
17 |
|
---|
18 | if [[ $kc == false ]] ; then k=0 ; else k=1 ; fi
|
---|
19 |
|
---|
20 | for lc in false true ; do
|
---|
21 |
|
---|
22 | if [[ $lc == false ]] ; then l=0 ; else l=1 ; fi
|
---|
23 |
|
---|
24 | cat ${config_base}_test1_head.cf > ${config_base}_test1_${i}${j}${k}${l}.cf
|
---|
25 |
|
---|
26 | echo output_lev1a = .${ic}. >> ${config_base}_test1_${i}${j}${k}${l}.cf
|
---|
27 |
|
---|
28 | echo output_lev1b = .${jc}. >> ${config_base}_test1_${i}${j}${k}${l}.cf
|
---|
29 |
|
---|
30 | echo output_lev2a = .${kc}. >> ${config_base}_test1_${i}${j}${k}${l}.cf
|
---|
31 |
|
---|
32 | echo output_diag = .${lc}. >> ${config_base}_test1_${i}${j}${k}${l}.cf
|
---|
33 |
|
---|
34 | cat ${config_base}_test1_tail.cf >> ${config_base}_test1_${i}${j}${k}${l}.cf
|
---|
35 |
|
---|
36 | done
|
---|
37 |
|
---|
38 | done
|
---|
39 |
|
---|
40 | done
|
---|
41 |
|
---|
42 | done
|
---|