source: NEMO/trunk/doc/manual_build.sh @ 14257

Last change on this file since 14257 was 14257, checked in by nicolasmartin, 4 months ago

Overall review of LaTeX sources (not tested completely as of now):

  • Reworking global files: main document.tex, add glossary.tex, cosmetic changes…
  • Ignore missing namelists (namsbc_isf, namsbc_iscpl and namptr)
  • Removal of references for unused indices (\hfile, \ifile and \jp)
  • Update of .svnignore and svn:ignore properties accordingly
  • Split of manual abstract into a common NEMO abs for all and a specific one for each engine
  • Shrinking variables names used in the frontmatter
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 799 bytes
Line 
1#!/bin/sh
2
3## Initialisation
4##---------------
5
6## Default selection for models
7if   [ "$1" = 'all' ]; then
8    models='NEMO SI3 TOP'
9elif [ "$1" =    '' ]; then
10    models='NEMO'
11else
12    models=$*
13fi
14
15# Source shared functions
16. tools/shr_func.sh
17
18
19## Check dependancies
20##-------------------
21
22## LaTeX installation, find latexmk should be enough
23[ -z "$( which latexmk )" ] && { echo 'latexmk not installed => QUIT'; exit 2; }
24
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
28## Loop on the models
29##-------------------
30
31for model in $models; do
32    echo $model
33#    clean $model
34    build $model
35    printf "\t¤ End of building run\n"
36    echo
37done
38
39exit 0
Note: See TracBrowser for help on using the repository browser.