From bafe3b59da7bfcc2a56e7559ba39e62b9d170540 Mon Sep 17 00:00:00 2001 From: Gustav Eek Date: Fri, 20 Apr 2012 22:55:15 +0200 Subject: Minutes for board meetig April 19 added Makefile updated, so that minutes can be sent to server directly --- 2012/Makefile | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to '2012/Makefile') diff --git a/2012/Makefile b/2012/Makefile index 83e634d..bc36a21 100644 --- a/2012/Makefile +++ b/2012/Makefile @@ -5,14 +5,19 @@ noarg: echo -e '\nThis script do not run without arguments. Run for example:\n\n make 2011-02-13-board-notes.pdf\n make all\n' - +minutes5 = 2012-04-19-board minutes4 = 2012-03-15-board minutes3 = 2012-03-04-annual minutes2 = 2012-02-27-board minutes1 = 2012-01-19-board -all: $(minutes4).pdf $(minutes3).pdf $(minutes2).pdf $(minutes1).pdf +all: $(minutes5).pdf $(minutes4).pdf $(minutes3).pdf $(minutes2).pdf $(minutes1).pdf +$(minutes5).pdf: $(minutes5).tex ../preamble/preamble.tex + pdflatex $(minutes5).tex + latex_count=5 ; \ + while egrep -s 'Rerun (LaTeX|to get cross-references right)' $(minutes5).log && [ $$latex_count -gt 0 ] ;\ + do echo "Rerunning latex...." ; pdflatex $(minutes5).tex; latex_count=`expr $$latex_count - 1`; done $(minutes4).pdf: $(minutes4).tex ../preamble/preamble.tex pdflatex $(minutes4).tex latex_count=5 ; \ @@ -34,5 +39,18 @@ $(minutes1).pdf: $(minutes1).tex ../preamble/preamble.tex while egrep -s 'Rerun (LaTeX|to get cross-references right)' $(minutes1).log && [ $$latex_count -gt 0 ] ;\ do echo "Rerunning latex...." ; pdflatex $(minutes1).tex; latex_count=`expr $$latex_count - 1`; done +send: # sends to fripost.org for publication + umask 022 + rsync -ruvp --chmod=Dugo+rx,Fugo+r *.pdf fripost@fripost.org:fripost.org/minutes/ + +# Debuging and testing +send-test: test.d/test + umask 022 + rsync -ruvp --chmod=Dugo+rx,Fugo+r rsync -ruvp test.d/ fripost@fripost.org:fripost.org/minutes/ +test.d/test: test.d + echo This is the test file for fripost-web. > test.d/test +test.d: + mkdir test.d + clean: rm *.aux *.bbl *.dvi *.log *.nav *.out *.snm *.toc *~ -- cgit v1.2.3