aboutsummaryrefslogtreecommitdiff
path: root/make
blob: c830f3ce908c31218d97acc728894be2db93bd9e (plain)
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/sh

export orig="$(pwd)"
export dir="$(dirname $0)"
create(){
cd $dir
mkdir imgs 
cd imgs
python3 ../data.py img || python ../data.py img || echo "You must install python3"
cd ..
mkdir graph
cd graph
python3 ../data.py depwid || python ../data.py depwid
python3 ../data.py nei || python ../data.py nei
cd ..
cd document
pdftex report.tex || echo "You must install \`pdftex\` (MacTeX, TeXLive, MikTeX, etc)"
cd ..
mkdir outputs
pdftex pics.tex
mv pics.pdf outputs/pics.pdf
pdftk document/report.pdf cat 1-end 11-12 15-16 output outputs/report.pdf
pdftk document/report.pdf cat 13-14 output outputs/tables.pdf
rm *.log
rm document/report.log
cp assets/* outputs/
cd $orig
}

create 2>/dev/null