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, 21 months 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
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.