Adoption to macOS environment

This commit is contained in:
2020-06-10 11:59:03 +02:00
parent eff3a197d1
commit 7b457f21b5
+10 -9
View File
@@ -1,14 +1,15 @@
#!/bin/bash #!/bin/bash
python $1.py python3 $1.py 2> $1.tex
pdflatex $1.tex /usr/local/texlive/2020/bin/x86_64-darwin/pdflatex $1.tex
# pdflatex $1.tex
rm *.aux *.log *.vscodeLog # rm *.aux *.log *.vscodeLog
rm *.tex # rm *.tex
if [[ "$OSTYPE" == "darwin"* ]]; then # if [[ "$OSTYPE" == "darwin"* ]]; then
open $1.pdf # open $1.pdf
else # else
xdg-open $1.pdf # xdg-open $1.pdf
fi # fi