-
Notifications
You must be signed in to change notification settings - Fork 6
/
mocopaper.sh
30 lines (26 loc) · 938 Bytes
/
mocopaper.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# Generate the results and figures.
python3 code/mocopaper.py
# Generate the convergence analysis.
python3 code/mocopaper.py --convergence
# Compile the paper.
cd paper
pdflatex -interaction=nonstopmode MocoPaper.tex
bibtex MocoPaper
pdflatex -interaction=nonstopmode MocoPaper.tex
pdflatex -interaction=nonstopmode MocoPaper.tex
pdflatex -interaction=nonstopmode MocoPaperAppendix.tex
bibtex MocoPaperAppendix
pdflatex -interaction=nonstopmode MocoPaperAppendix.tex
pdflatex -interaction=nonstopmode MocoPaperAppendix.tex
cd ../
# If this script is being run inside a Docker container, copy certain files
# to a folder that a user could mount from their local file system to export
# the outputs from the Docker container.
if [ -f /.dockerenv ]; then
cp paper/MocoPaper.pdf /output/
cp paper/MocoPaperAppendix.pdf /output/
cp results/* /output/
cp figures/*.png /output/
cp figures/*.tiff /output/
fi