New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
manual_build.sh in NEMO/trunk/doc – NEMO

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

Last change on this file since 11120 was 11120, checked in by nicolasmartin, 5 years ago

Modification of the building process with dedicated build sub-folder

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#!/bin/sh
2
3## Initialisation
4##---------------
5
6## latekmk options
7opts='-shell-escape -pdf -quiet'
8export openout_any='a'
9
10## Default selection for models
11if   [ "$1" = 'all' ]; then
12    models='NEMO SI3 TOP'
13elif [ "$1" =    '' ]; then
14    models='NEMO'
15else
16    models=$*
17fi
18
19# Source shared functions
20. tools/shr_func.sh
21
22
23## Check dependancies
24##-------------------
25
26## LaTeX installation, find latexmk should be enough
27[ -z $( which latexmk ) ] && { echo 'latexmk not installed => QUIT'; exit 2; }
28
29## Pygments package for syntax highlighting of source code (namelists & snippets)
30[ -n "$( ./tools/check_pkg.py pygments )" ] && { echo 'Python pygments is missing => QUIT'; exit 2; }
31
32## Retrieve figures if not already there
33if [ ! -d latex/figures ]; then
34    printf "Downloading of shared figures and logos\n\n"
35    svn co https://forge.ipsl.jussieu.fr/nemo/svn/utils/figures latex/figures > /dev/null
36fi
37
38
39## Loop on the models
40##-------------------
41
42for model in $models; do
43    echo $model
44    clean $model
45    build $model
46    printf "\t¤ End of building run\n"
47    printf "\t  The export should be available at root\n"
48    printf "\t  If not check LaTeX log in ./latex/$model/build/${model}_manual.log\n"
49    echo
50done
51
52exit 0
Note: See TracBrowser for help on using the repository browser.