Skip to content

Commit 100d479

Browse files
authored
Merge pull request #8 from ufjfeng/master
add bash script to build pdf on mac and delete temp files
2 parents 091c60d + bfcab81 commit 100d479

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/makepdf_mac.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
ERROR="Too few arguments : no file name specified"
4+
[[ $# -eq 0 ]] && echo $ERROR && exit # no args? ... print error and exit
5+
6+
if [ -f $1.tex ];then
7+
xelatex $1
8+
bibtex $1
9+
xelatex $1
10+
xelatex $1
11+
rm *.lof *.lot *.out *.toc *.log *.aux *.bbl *.blg *.bak *.sav *.dvi *.gz
12+
fi

0 commit comments

Comments
 (0)