From 904a70079f7c908c56347494b99faf4eab063116 Mon Sep 17 00:00:00 2001 From: David Runge Date: Wed, 9 Apr 2014 19:18:40 +0200 Subject: Simplified log output --- bin/tex2pdf | 43 +++++++++++++++++++++++-------------------- 1 file 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} -- cgit v1.2.3-70-g09d2