-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
32 lines (26 loc) · 859 Bytes
/
build.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
31
32
export PYTHONDONTWRITEBYTECODE=1
read -p "Run archive script? [y/N] " yn
case $yn in
[Yy]* ) ./archive.sh;;
* ) echo "Skipping archive script.";;
esac
rm gen/doc.* gen/texput.log
echo "lang = 'en'
tag = ['resume']" > gen/env.py
python3 -B gen/build.py
xelatex -interaction=nonstopmode -halt-on-error -output-directory=gen gen/doc.tex
cp gen/doc.pdf build/resume.pdf
rm gen/doc.pdf
echo "lang = 'ja'
tag = ['resume', 'resume-ja']" > gen/env.py
python3 -B gen/build.py
xelatex -interaction=nonstopmode -halt-on-error -output-directory=gen gen/doc.tex
cp gen/doc.pdf build/resume-ja.pdf
rm gen/doc.pdf
echo "lang = 'zh'
tag = ['resume', 'resume-zh']" > gen/env.py
python3 -B gen/build.py
xelatex -interaction=nonstopmode -halt-on-error -output-directory=gen gen/doc.tex
cp gen/doc.pdf build/resume-zh.pdf
rm gen/doc.pdf
rm gen/doc.* gen/texput.log