blob: 5045f7917da617c5617d8b59c5630a4f9fe6b6fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
SHELL=/bin/bash
fripost-mayday-flyer.pdf: master.tex preamble.tex frontside.tex backside.tex
latex_count=5 ;\
latex_log=$$(echo $< | sed 's/.tex/.log/') ;\
pdflatex $< ;\
while egrep -s 'Rerun (LaTeX|to get cross-references right)' $$latex_log && [ $$latex_count -gt 0 ] ;\
do echo "Rerunning latex...." ; pdflatex $< ;\
latex_count=`expr $$latex_count - 1`;\
done;
mv -v $$(echo $< | sed 's/.tex/.pdf/') $@
send:
rsync -ruvp --chmod=Dugo+rx,Fugo+r *.pdf www.fripost.org:/var/www/fripost.org/material/
|