18 lines
528 B
Bash
18 lines
528 B
Bash
|
#!/bin/sh
|
||
|
RESULT_DIR="../result"
|
||
|
OUTPUT_DIR="../temp"
|
||
|
FILE="thesis"
|
||
|
cd tex
|
||
|
mkdir $RESULT_DIR
|
||
|
mkdir $OUTPUT_DIR
|
||
|
cp literatur.bib $OUTPUT_DIR
|
||
|
pdflatex -output-directory="$OUTPUT_DIR" -synctex=1 -interaction=nonstopmode ${FILE}.tex
|
||
|
cd $OUTPUT_DIR
|
||
|
biber ${FILE}
|
||
|
makeindex ${FILE}.idx
|
||
|
cd ../tex
|
||
|
pdflatex -output-directory="$OUTPUT_DIR" -synctex=1 -interaction=nonstopmode ${FILE}.tex
|
||
|
pdflatex -output-directory="$OUTPUT_DIR" -synctex=2 -interaction=nonstopmode ${FILE}.tex
|
||
|
cat $OUTPUT_DIR/${FILE}.pdf > $RESULT_DIR/${FILE}.pdf
|
||
|
cd ..
|