source:
NEMO/trunk/doc/manual_build.sh
@
14423
Last change on this file since 14423 was 14257, checked in by nicolasmartin, 4 years ago | |
---|---|
|
|
File size: 799 bytes |
Rev | Line | |
---|---|---|
[9407] | 1 | #!/bin/sh |
2 | ||
[11004] | 3 | ## Initialisation |
4 | ##--------------- | |
[9407] | 5 | |
[11004] | 6 | ## Default selection for models |
7 | if [ "$1" = 'all' ]; then | |
[11120] | 8 | models='NEMO SI3 TOP' |
[11004] | 9 | elif [ "$1" = '' ]; then |
[11120] | 10 | models='NEMO' |
[11004] | 11 | else |
[11120] | 12 | models=$* |
[11004] | 13 | fi |
[10146] | 14 | |
[11004] | 15 | # Source shared functions |
16 | . tools/shr_func.sh | |
[10146] | 17 | |
18 | ||
[11004] | 19 | ## Check dependancies |
20 | ##------------------- | |
[10474] | 21 | |
[11004] | 22 | ## LaTeX installation, find latexmk should be enough |
[14257] | 23 | [ -z "$( which latexmk )" ] && { echo 'latexmk not installed => QUIT'; exit 2; } |
[10474] | 24 | |
[11120] | 25 | ## Pygments package for syntax highlighting of source code (namelists & snippets) |
26 | [ -n "$( ./tools/check_pkg.py pygments )" ] && { echo 'Python pygments is missing => QUIT'; exit 2; } | |
27 | ||
[11004] | 28 | ## Loop on the models |
29 | ##------------------- | |
30 | ||
31 | for model in $models; do | |
[11120] | 32 | echo $model |
[11594] | 33 | # clean $model |
[11120] | 34 | build $model |
35 | printf "\t¤ End of building run\n" | |
36 | echo | |
[11004] | 37 | done |
38 | ||
[9407] | 39 | exit 0 |
Note: See TracBrowser
for help on using the repository browser.