source:
NEMO/branches/2019/ENHANCE-03_closea/doc/manual_build.sh
@
11850
Last change on this file since 11850 was 11176, checked in by nicolasmartin, 5 years ago | |
---|---|
|
|
File size: 1.1 KB |
Line | |
---|---|
1 | #!/bin/sh |
2 | |
3 | ## Initialisation |
4 | ##--------------- |
5 | |
6 | ## Env. variable for using relative paths with latexmk |
7 | export openout_any='a' |
8 | |
9 | ## Default selection for models |
10 | if [ "$1" = 'all' ]; then |
11 | models='NEMO SI3 TOP' |
12 | elif [ "$1" = '' ]; then |
13 | models='NEMO' |
14 | else |
15 | models=$* |
16 | fi |
17 | |
18 | # Source shared functions |
19 | . tools/shr_func.sh |
20 | |
21 | |
22 | ## Check dependancies |
23 | ##------------------- |
24 | |
25 | ## LaTeX installation, find latexmk should be enough |
26 | [ -z $( which latexmk ) ] && { echo 'latexmk not installed => QUIT'; exit 2; } |
27 | |
28 | ## Pygments package for syntax highlighting of source code (namelists & snippets) |
29 | [ -n "$( ./tools/check_pkg.py pygments )" ] && { echo 'Python pygments is missing => QUIT'; exit 2; } |
30 | |
31 | ## Retrieve figures if not already there |
32 | if [ ! -d latex/figures ]; then |
33 | printf "Downloading of shared figures and logos\n\n" |
34 | svn co https://forge.ipsl.jussieu.fr/nemo/svn/utils/figures latex/figures > /dev/null |
35 | fi |
36 | |
37 | |
38 | ## Loop on the models |
39 | ##------------------- |
40 | |
41 | for model in $models; do |
42 | echo $model |
43 | clean $model |
44 | build $model |
45 | printf "\t¤ End of building run\n" |
46 | echo |
47 | done |
48 | |
49 | exit 0 |
50 |
Note: See TracBrowser
for help on using the repository browser.