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

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

Mainly some modifications to enable the compilation of the manual by dedicated LaTeX editors
The compilation options have been gathered within latexmkrc RC file for Latexmk,
this has been tested successfully for 2 cross-platform softwares: Texmaker & TeXstudio?
Don't be able to test it under TeXShop for MacOS, but it should be portable as
it requires only to modify the configuration of few cmds: LaTeX, PdfLaTeX, Latexmk & PDF viewer
For a comprehensive list of available LaTeX editors, see https://en.wikibooks.org/wiki/LaTeX/Installation#Cross-platform)

Other changes

  • Rectification of the required list for LaTeX pkgs
  • Append thanks.tex with the first reviewers of chapters
  • Configuration of the background color for namelists
  • Testing of colors for different types of links
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1022 bytes
RevLine 
[9407]1#!/bin/sh
2
[11004]3## Initialisation
4##---------------
[9407]5
[11004]6## Default selection for models
7if   [ "$1" = 'all' ]; then
[11120]8    models='NEMO SI3 TOP'
[11004]9elif [ "$1" =    '' ]; then
[11120]10    models='NEMO'
[11004]11else
[11120]12    models=$*
[11004]13fi
[10146]14
[11004]15# Source shared functions
16. tools/shr_func.sh
[10146]17
18
[11004]19## Check dependancies
20##-------------------
[10474]21
[11004]22## LaTeX installation, find latexmk should be enough
[11120]23[ -z $( which latexmk ) ] && { echo 'latexmk not installed => QUIT'; exit 2; }
[10474]24
[11120]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
[11004]28## Retrieve figures if not already there
29if [ ! -d latex/figures ]; then
[11120]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
[11004]32fi
[10610]33
[10146]34
[11004]35## Loop on the models
36##-------------------
37
38for model in $models; do
[11120]39    echo $model
40    clean $model
41    build $model
42    printf "\t¤ End of building run\n"
43    echo
[11004]44done
45
[9407]46exit 0
[11176]47
Note: See TracBrowser for help on using the repository browser.