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.
PDF_creation.sh in NEMO/branches/UKMO/dev_r10448_bdyvol/doc – NEMO

source: NEMO/branches/UKMO/dev_r10448_bdyvol/doc/PDF_creation.sh @ 10455

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

Add .svnignore for managing globally the skiping files and switch to latexmk to build the documentation from LaTeX

  • Use .svnignore to update the extensions list and apply it with svn pset -R svn:ignore -F .svnignore latex
  • Latexmk is a LaTeX package (https://www.ctan.org/pkg/latexmk) which takes care of the compilation process, in particular the update of the cross-references
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 632 bytes
Line 
1#!/bin/sh
2
3
4export opts='-shell-escape -pdf'
5model='NEMO'
6
7clean() {
8    ## Delete latex build files
9    find latex -regextype posix-extended                                              \
10         -regex ".*\.(aux|bbl|blg|dvi|fdb|fls|idx|ilg|ind|log|maf|mtc|out|pdf|toc).*" \
11         -exec rm {} \;
12
13    ## Remove 'minted' directories
14    find latex -type d -name '_minted*' -exec rm -r {} \;
15
16    ## HTML exports
17    find latex -type d -name 'html*'    -exec rm -r {} \;
18}
19
20build() {
21    cd latex/$1/main
22    latexmk $opts $1'_manual' > /dev/null
23    mv            $1'_manual'.pdf ../../..
24    cd -
25}
26
27clean
28build $model
29
30exit 0
Note: See TracBrowser for help on using the repository browser.