source:
NEMO/trunk/doc/bin/nlsts_check.sh
@
10161
Last change on this file since 10161 was 10146, checked in by nicolasmartin, 6 years ago | |
---|---|
|
|
File size: 479 bytes |
Rev | Line | |
---|---|---|
[10075] | 1 | #!/bin/sh |
2 | ||
[10146] | 3 | if [[ $* != '' ]]; then |
[10075] | 4 | |
[10146] | 5 | if [[ $1 = 'all' ]]; then |
6 | models='NEMO SI3 TOP' | |
7 | else | |
8 | models=$1 | |
9 | fi | |
10 | ||
11 | else | |
12 | models='NEMO' | |
13 | fi | |
14 | ||
15 | for model in $models; do | |
16 | [[ $model =~ ^(SI3|TOP)$ ]] && continue | |
17 | echo 'Namelists not included in the '$model' manual:' | |
18 | ||
19 | for nlst in $( ls namelists ); do | |
20 | ||
21 | if [[ ! $( grep "\\nlst{$nlst}" ./latex/$model/subfiles/*.tex ) ]]; then | |
22 | printf "$nlst " | |
23 | fi | |
24 | ||
25 | done | |
26 | ||
27 | echo | |
28 | ||
[10075] | 29 | done |
30 | ||
31 | exit 0 |
Note: See TracBrowser
for help on using the repository browser.