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

source: NEMO/branches/2018/dev_r10164_HPC09_ESIWACE_PREP_MERGE/doc/PDF_creation.sh @ 10419

Last change on this file since 10419 was 10419, checked in by smasson, 5 years ago

dev_r10164_HPC09_ESIWACE_PREP_MERGE: merge with trunk@10418, see #2133

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 632 bytes
RevLine 
[9407]1#!/bin/sh
2
3
[10419]4export opts='-shell-escape -pdf'
[10146]5model='NEMO'
[9407]6
[10146]7clean() {
8    ## Delete latex build files
[10419]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 {} \;
[10146]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
[10419]22    latexmk $opts $1'_manual' > /dev/null
23    mv            $1'_manual'.pdf ../../..
[10146]24    cd -
25}
26
27clean
[10419]28build $model
[10146]29
[9407]30exit 0
Note: See TracBrowser for help on using the repository browser.