aboutsummaryrefslogtreecommitdiffstats
path: root/2013/Makefile
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@proceranetworks.com>2013-04-20 09:28:25 +0200
committerGustav Eek <gustav.eek@proceranetworks.com>2013-04-20 09:28:25 +0200
commit333ce0e77e9ed4471070b2cbc856edc29cd800ca (patch)
treec7b6fcb1da08ea68d3f47f74dcb09fc0641410d0 /2013/Makefile
parentcf84992f282bd9a1cbac21e525175e466328056f (diff)
parent07d3de541c5eb163bdb563f0fb4489d92d53f899 (diff)
Merge branch 'ge-annual'
Conflicts: 2013/Makefile
Diffstat (limited to '2013/Makefile')
-rw-r--r--2013/Makefile21
1 files changed, 19 insertions, 2 deletions
diff --git a/2013/Makefile b/2013/Makefile
index 6c7f8be..883e9bb 100644
--- a/2013/Makefile
+++ b/2013/Makefile
@@ -4,28 +4,45 @@ noarg:
# Normal minutes
all: \
2013-03-26-board.pdf \
+2013-03-23-annual.pdf \
2013-03-12-board-notes.pdf \
2013-02-12-board.pdf
# Minutes with information from external sources
completes: 2013-03-26-board-complete.pdf
+# The most general latex compilation command
%.pdf: %.tex ../preamble/preamble.tex
latex_count=5 ;\
latex_log=$$(echo $@ | sed 's/.pdf/.log/') ;\
pdflatex $< ;\
- while egrep -s 'Rerun (LaTeX|to get cross-references right)' \\\
- $$latex_log && [ $$latex_count -gt 0 ] ;\
+ 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;
+# Special treatment of minutes complemented with secrets
%-complete.tex: %.tex %.sed.gpg
source=$$(echo $< | sed 's/.tex//') ; \
gpg --decrypt < $${source}.sed.gpg > $${source}.sed_ ; \
sed -f $${source}.sed_ < $< > $@ ;\
rm -f $${source}.sed_
+# Treat annual meeting minutes specially
+2013-03-23-annual.pdf: 2013-03-23-annual.tex \
+../preamble/preamble.tex \
+../annual-reports/annual-report-2013.tex \
+../by-laws/by-laws-2013.tex \
+../operational-plans/operational-plan-2013.tex \
+../annual-reports/2013-03-23-revisionsberaettelse.jpg
+ latex_count=5 ;\
+ latex_log=$$(echo $@ | sed 's/.pdf/.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;
+
# Sends to fripost.org for publication
send:
rsync -ruvp --chmod=Dugo+rx,Fugo+r *-board.pdf *-notes.pdf *-annual.pdf fripost@fripost.org:fripost.org/minutes/