source:
NEMO/trunk/doc/manual_build.sh
@
11013
Last change on this file since 11013 was 11013, checked in by nicolasmartin, 5 years ago | |
---|---|
|
|
File size: 1.2 KB |
Rev | Line | |
---|---|---|
[9407] | 1 | #!/bin/sh |
2 | ||
[11004] | 3 | ## Initialisation |
4 | ##--------------- | |
[9407] | 5 | |
[11004] | 6 | ## latekmk options |
[11013] | 7 | opts='-shell-escape -quiet -pdf' |
[10474] | 8 | |
[11004] | 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 | |
[10146] | 17 | |
[11004] | 18 | ## Avoid the use of shell builtin echo (for -e option) |
19 | alias echo='/bin/echo -e' | |
[10146] | 20 | |
[11004] | 21 | # Source shared functions |
22 | . tools/shr_func.sh | |
[10146] | 23 | |
24 | ||
[11004] | 25 | ## Check dependancies |
26 | ##------------------- | |
[10474] | 27 | |
[11004] | 28 | ## LaTeX installation, find latexmk should be enough |
29 | [ -z $( which latexmk ) ] && { echo 'latexmk binary is not present => QUIT'; exit 2; } | |
[10474] | 30 | |
[11004] | 31 | ## Retrieve figures if not already there |
32 | if [ ! -d latex/figures ]; then | |
33 | echo "Downloading of shared figures and logos\n" | |
34 | svn co https://forge.ipsl.jussieu.fr/nemo/svn/utils/figures latex/figures > /dev/null | |
35 | fi | |
[10610] | 36 | |
[11004] | 37 | ## Pygments package for syntax highlighting of source code (namelists & snippets) |
38 | [ -n "$( ./tools/check_pkg.py pygments )" ] && { exit 2; } | |
[10146] | 39 | |
[11004] | 40 | |
41 | ## Loop on the models | |
42 | ##------------------- | |
43 | ||
44 | for model in $models; do | |
45 | echo $model"\n" | |
46 | clean $model; build $model | |
[11013] | 47 | echo "\t"'¤ End of building run' |
[11004] | 48 | echo "\t\t"'The export should be available at root' |
49 | echo "\t\t"'If not check LaTeX log in ./latex/'$model'/main/'$model'_manual.log'"\n" | |
50 | done | |
51 | ||
[9407] | 52 | exit 0 |
Note: See TracBrowser
for help on using the repository browser.