source: NEMO/branches/2019/dev_r10984_HPC-13_IRRMANN_BDY_optimization/doc/manual_build.sh @ 11044

Last change on this file since 11044 was 11042, checked in by girrmann, 2 years ago

dev_r10984_HPC-13 : update with trunk at revision 11041

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