diff options
author | Gustav Eek <gustav.eek@fripost.org> | 2021-05-26 10:30:22 +0200 |
---|---|---|
committer | Gustav Eek <gustav.eek@fripost.org> | 2022-05-20 16:45:14 +0200 |
commit | d8298304562a75b78ea26af0093930cdcb6e8471 (patch) | |
tree | 5d0fd5dad169230bc602e4f09f4e6672c30887a1 /annual-meetings/motions | |
parent | 0c0203c7bf0f001c8d88105f3a8585a4f749c6cd (diff) |
Annual 2021. Propositions. Add Makefile and sed scripts
Diffstat (limited to 'annual-meetings/motions')
-rw-r--r-- | annual-meetings/motions/Makefile | 21 | ||||
-rw-r--r-- | annual-meetings/motions/headings.sed | 1 |
2 files changed, 14 insertions, 8 deletions
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/ |