aboutsummaryrefslogtreecommitdiffstats
path: root/bin/tex2pdf
diff options
context:
space:
mode:
authorDavid Runge <david.runge@frqrec.com>2014-04-09 19:18:40 +0200
committerDavid Runge <david.runge@frqrec.com>2014-04-09 19:18:40 +0200
commit904a70079f7c908c56347494b99faf4eab063116 (patch)
tree3f126089fc48125427431fd4b4bcd2a7f50e1b93 /bin/tex2pdf
parent5ec2aa8e5c9a7d1e94d910842290494211856a6e (diff)
downloaddotfiles-904a70079f7c908c56347494b99faf4eab063116.tar.gz
dotfiles-904a70079f7c908c56347494b99faf4eab063116.tar.bz2
dotfiles-904a70079f7c908c56347494b99faf4eab063116.tar.xz
dotfiles-904a70079f7c908c56347494b99faf4eab063116.zip
Simplified log output
Diffstat (limited to 'bin/tex2pdf')
-rwxr-xr-xbin/tex2pdf43
1 files changed, 23 insertions, 20 deletions
diff --git a/bin/tex2pdf b/bin/tex2pdf
index 4131ba2..9309f5f 100755
--- a/bin/tex2pdf
+++ b/bin/tex2pdf
@@ -1,24 +1,27 @@
#!/bin/bash
-echo "tex2pdf called with $1.tex">~/.tex2pdf.log
-echo "#####################################################">>~/.tex2pdf.log
-echo "################## pdflatex, run #1 #################">>~/.tex2pdf.log
-echo "#####################################################">>~/.tex2pdf.log
-pdflatex -interaction=nonstopmode $1.tex>>~/.tex2pdf.log
-echo "bibtex:">>~/.tex2pdf.log
-bibtex $1.aux>>~/.tex2pdf.log
-echo "#####################################################">>~/.tex2pdf.log
-echo "################## pdflatex, run #2 #################">>~/.tex2pdf.log
-echo "#####################################################">>~/.tex2pdf.log
-pdflatex -interaction=nonstopmode $1.tex>>~/.tex2pdf.log
-echo "#####################################################">>~/.tex2pdf.log
-echo "################## pdflatex, run #3 #################">>~/.tex2pdf.log
-echo "#####################################################">>~/.tex2pdf.log
-pdflatex -interaction=nonstopmode $1.tex>>~/.tex2pdf.log
-echo "#####################################################">>~/.tex2pdf.log
-echo "Launching evince with $1.pdf.">>~/.tex2pdf.log
+$log_dest = $log_dest
+rm -rf "$log_dest"
+touch "$log_dest"
+echo "tex2pdf called with $1.tex">>$log_dest
+echo "#####################################################">>$log_dest
+echo "################## pdflatex, run #1 #################">>$log_dest
+echo "#####################################################">>$log_dest
+pdflatex -interaction=nonstopmode $1.tex>>$log_dest
+echo "bibtex:">>$log_dest
+bibtex $1.aux>>$log_dest
+echo "#####################################################">>$log_dest
+echo "################## pdflatex, run #2 #################">>$log_dest
+echo "#####################################################">>$log_dest
+pdflatex -interaction=nonstopmode $1.tex>>$log_dest
+echo "#####################################################">>$log_dest
+echo "################## pdflatex, run #3 #################">>$log_dest
+echo "#####################################################">>$log_dest
+pdflatex -interaction=nonstopmode $1.tex>>$log_dest
+echo "#####################################################">>$log_dest
+echo "Launching evince with $1.pdf.">>$log_dest
evince $1.pdf &
-echo "#####################################################">>~/.tex2pdf.log
-echo "Removing aux,bbl,blg,dvi,lof,log,lot,nav,out,snm,toc.">>~/.tex2pdf.log
-echo "Current directory: $(pwd) and children of depth 1.">>~/.log/tex2pdf.log
+echo "#####################################################">>$log_dest
+echo "Removing aux,bbl,blg,dvi,lof,log,lot,nav,out,snm,toc.">>$log_dest
+echo "Current directory: $(pwd) and children of depth 1.">>$log_dest
rm -f $1.{aux,bbl,blg,dvi,lof,log,lot,nav,out,snm,toc}
rm -f */*.{aux,bbl,blg,dvi,lof,log,lot,nav,out,snm,toc}