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 @ 11013

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

Add explicit option for latexmk to ensure PDF export

  • 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 -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## Avoid the use of shell builtin echo (for -e option)
19alias echo='/bin/echo -e'
20
21# Source shared functions
22. tools/shr_func.sh
23
24
25## Check dependancies
26##-------------------
27
28## LaTeX installation, find latexmk should be enough
29[ -z $( which latexmk ) ] && { echo 'latexmk binary is not present => QUIT'; exit 2; }
30
31## Retrieve figures if not already there
32if [ ! -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
35fi
36
37## Pygments package for syntax highlighting of source code (namelists & snippets)
38[ -n "$( ./tools/check_pkg.py pygments )" ] && { exit 2; }
39
40
41## Loop on the models
42##-------------------
43
44for model in $models; do
45   echo $model"\n"
46   clean $model; build $model
47   echo "\t"'¤ End of building run'
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"
50done
51
52exit 0
Note: See TracBrowser for help on using the repository browser.