source:
NEMO/trunk/doc/tools/shr_func.sh
@
11336
Last change on this file since 11336 was 11212, checked in by nicolasmartin, 5 years ago | |
---|---|
|
|
File size: 622 bytes |
Rev | Line | |
---|---|---|
[11004] | 1 | #!/bin/sh |
2 | ||
3 | clean() { | |
[11033] | 4 | ## Not sure if this step is needed, guess latexmk should be able to detect a change |
[11120] | 5 | printf "\t¤ Clean previous build" |
[11212] | 6 | find latex/$1/build -mindepth 1 -prune -not -name $1_manual.pyg -exec rm -rf {} \; |
[11004] | 7 | |
[11033] | 8 | ## HTML exports |
9 | #printf ' - possible HTML export' | |
10 | #find latex/$1 -type d -name 'html*' -exec rm -r {} \; | |
[11004] | 11 | |
[11033] | 12 | echo |
[11004] | 13 | } |
14 | ||
15 | build() { | |
[11033] | 16 | printf "\t¤ Generation of the PDF format\n" |
[11177] | 17 | latexmk -r ./latex/global/latexmkrc \ |
[11176] | 18 | -cd ./latex/$1/main/$1_manual \ |
19 | 1> /dev/null | |
[11120] | 20 | [ -f ./latex/$1/build/$1_manual.pdf ] && mv ./latex/$1/build/$1_manual.pdf . |
[11033] | 21 | echo |
[11004] | 22 | } |
[11176] | 23 |
Note: See TracBrowser
for help on using the repository browser.