From d8298304562a75b78ea26af0093930cdcb6e8471 Mon Sep 17 00:00:00 2001 From: Gustav Eek Date: Wed, 26 May 2021 10:30:22 +0200 Subject: Annual 2021. Propositions. Add Makefile and sed scripts --- annual-meetings/motions/Makefile | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'annual-meetings/motions/Makefile') diff --git a/annual-meetings/motions/Makefile b/annual-meetings/motions/Makefile index 683f2f4..019b239 100644 --- a/annual-meetings/motions/Makefile +++ b/annual-meetings/motions/Makefile @@ -8,14 +8,12 @@ PREAMBLE = preamble_.tex acronyms_.tex attendants_.tex all: $(ALL) %_.tex: %.mdwn - cat < $< | sed -e 's/^$$/\\mypar\n/' |\ - sed -f ../../preamble/acronyms.sed \ - -f ../../preamble/attendants.sed \ - -f ../../preamble/snippets.sed |\ - pandoc -f markdown -t latex > $@ - - - + cat < $< | sed -e 's/^$$/\\mypar\n/' \ + | sed -f ../../preamble/acronyms.sed \ + -f ../../preamble/attendants.sed \ + -f ../../preamble/snippets.sed \ + -f headings.sed \ + | pandoc -f markdown -t latex > $@ motions-%.pdf: %.main.tex $(TEX) $(PREAMBLE) pdflatex -jobname=$(basename $@) $< @@ -27,3 +25,10 @@ clean: $(PREAMBLE): %_.tex: ../../preamble/%.tex sed 's/..\/preamble\/\([a-z]*\)/\1_/g' < $< > $@ + +SEND_FILES = \ + $(wildcard *.pdf) + +send: + rsync -ruvp --chmod=Dugo+rx,Fugo+r $(SEND_FILES) www.fripost.org:/var/www/fripost.org/minutes + @echo; echo Now avialable as; for f in $(SEND_FILES); do echo " - https://fripost.org/minutes/$$f"; done -- cgit v1.2.3