aboutsummaryrefslogtreecommitdiffstats
path: root/2012/Makefile
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@proceranetworks.com>2012-04-20 22:55:15 +0200
committerGustav Eek <gustav.eek@proceranetworks.com>2012-04-20 23:30:56 +0200
commitbafe3b59da7bfcc2a56e7559ba39e62b9d170540 (patch)
tree81cef25ceb2e07bb582b787243c620670067a028 /2012/Makefile
parent9d9732e45eff2b002041a6a35dff916d22a3e7a0 (diff)
Minutes for board meetig April 19 added
Makefile updated, so that minutes can be sent to server directly
Diffstat (limited to '2012/Makefile')
-rw-r--r--2012/Makefile22
1 files changed, 20 insertions, 2 deletions
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 *~