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_r9950_GO8_package/doc – NEMO

source: NEMO/branches/UKMO/dev_r9950_GO8_package/doc/PDF_creation.sh @ 10682

Last change on this file since 10682 was 10322, checked in by davestorkey, 5 years ago

UKMO/dev_r9950_GO8_package: Update to be relative to rev 10321 of NEMO4_beta_mirror branch.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 787 bytes
Line 
1#!/bin/sh
2
3
4export opts='-shell-escape -interaction=nonstopmode'
5model='NEMO'
6
7clean() {
8    ## Delete latex build files
9    find latex -regextype posix-extended -regex ".*\.(aux|log|maf|mtc|out|toc).*" -exec rm {} \;
10
11    ## Remove 'minted' directories
12    find latex -type d -name '_minted*' -exec rm -r {} \;
13
14    ## HTML exports
15    find latex -type d -name 'html*'    -exec rm -r {} \;
16}
17
18build() {
19    cd latex/$1/main
20
21    latex     $opts              $1'_manual' > /dev/null
22    makeindex -s $1'_manual'.ist $1'_manual' > /dev/null
23    bibtex                       $1'_manual' > /dev/null
24    #latex     $opts              $1'_manual' > /dev/null
25    pdflatex  $opts              $1'_manual' > /dev/null
26
27    mv $1'_manual'.pdf ../../..
28    cd -
29}
30
31clean
32build    $model
33
34exit 0
Note: See TracBrowser for help on using the repository browser.