Last change
on this file since 10405 was
10405,
checked in by nicolasmartin, 2 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 | |
---|
4 | export opts='-shell-escape -pdf' |
---|
5 | model='NEMO' |
---|
6 | |
---|
7 | clean() { |
---|
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 | |
---|
20 | build() { |
---|
21 | cd latex/$1/main |
---|
22 | latexmk $opts $1'_manual' > /dev/null |
---|
23 | mv $1'_manual'.pdf ../../.. |
---|
24 | cd - |
---|
25 | } |
---|
26 | |
---|
27 | clean |
---|
28 | build $model |
---|
29 | |
---|
30 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.