-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.sh
executable file
·17 lines (16 loc) · 923 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh -e
if [ "$1" = "--use-docker" ]; then
echo "compiling using sotetsuk/platex ..."
docker run --rm -v `pwd`:/latex sotetsuk/platex platex -interaction=nonstopmode -halt-on-error -shell-escape -kanji=utf8 main
# docker run --rm -v `pwd`:/latex sotetsuk/platex bibtex main
docker run --rm -v `pwd`:/latex sotetsuk/platex platex -interaction=nonstopmode -halt-on-error -shell-escape -kanji=utf8 main
docker run --rm -v `pwd`:/latex sotetsuk/platex platex -interaction=nonstopmode -halt-on-error -shell-escape -kanji=utf8 main
docker run --rm -v `pwd`:/latex sotetsuk/platex dvipdfmx main
else
echo "compiling using local platex ..."
platex -interaction=nonstopmode -halt-on-error -shell-escape -kanji=utf8 main
# bibtex main
platex -interaction=nonstopmode -halt-on-error -shell-escape -kanji=utf8 main
platex -interaction=nonstopmode -halt-on-error -shell-escape -kanji=utf8 main
dvipdfmx main
fi