source:
NEMO/trunk/doc/tools/shr_func.sh
@
11013
Last change on this file since 11013 was 11008, checked in by nicolasmartin, 5 years ago | |
---|---|
|
|
File size: 1.1 KB |
Line | |
---|---|
1 | #!/bin/sh |
2 | |
3 | alias echo='/bin/echo -e' |
4 | |
5 | clean() { |
6 | ## Not sure if this step is needed, guess latexmk should be able to detect a change |
7 | echo "\t¤ Clean previous build" |
8 | |
9 | ## Delete temp files from previous build |
10 | echo "\t\t- delete all temporary files (.aux, .bbl, ...)" |
11 | find latex/$1 -regextype posix-extended \ |
12 | -regex ".*\.(aux|bbl|blg|dvi|fdb|fls|idx|ilg|ind|log|maf|mtc|out|pdf|toc).*" \ |
13 | -exec rm {} \; |
14 | |
15 | ## Remove minted folders |
16 | echo "\t\t- remove pygments input hash files (\"_minted\" folders)" |
17 | find latex/$1 -type d -name '_minted*' -exec rm -r {} \; 2> /dev/null |
18 | |
19 | ## HTML exports |
20 | #echo ' - possible HTML export' |
21 | #find latex/$1 -type d -name 'html*' -exec rm -r {} \; |
22 | |
23 | echo |
24 | } |
25 | |
26 | build() { |
27 | echo "\t¤ Generation of the PDF format\n" |
28 | cd latex/$1/main |
29 | latexmk $opts $1'_manual' 1> /dev/null |
30 | [ -f $1'_manual'.pdf ] && mv $1'_manual'.pdf ../../.. |
31 | cd - > /dev/null |
32 | echo |
33 | } |
Note: See TracBrowser
for help on using the repository browser.