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 +++++++++++++-------- annual-meetings/motions/headings.sed | 1 + 2 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 annual-meetings/motions/headings.sed 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 diff --git a/annual-meetings/motions/headings.sed b/annual-meetings/motions/headings.sed new file mode 100644 index 0000000..9e40d4d --- /dev/null +++ b/annual-meetings/motions/headings.sed @@ -0,0 +1 @@ +1 s/^% \(.*\)/## \1/ -- cgit v1.2.3