Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh
## Initialisation
##---------------
## Default selection for models
if [ "$1" = 'all' ]; then
models='NEMO SI3 TOP'
elif [ "$1" = '' ]; then
models='NEMO'
else
models=$*
fi
# Source shared functions
. tools/shr_func.sh
## Check dependancies
##-------------------
## LaTeX installation, find latexmk should be enough
[ -z "$( which latexmk )" ] && { echo 'latexmk not installed => QUIT'; exit 2; }
## Pygments package for syntax highlighting of source code (namelists & snippets)
[ -n "$( ./tools/check_pkg.py pygments )" ] && { echo 'Python pygments is missing => QUIT'; exit 2; }
## Loop on the models
##-------------------
for model in $models; do
echo $model
# clean $model
build $model
printf "\t¤ End of building run\n"
echo
done
exit 0