From 1cf5b660f28ac5a82c9149c0f449f5cb9a0080fb Mon Sep 17 00:00:00 2001 From: Gustav Eek Date: Sun, 11 Jun 2023 08:37:00 +0200 Subject: Annual 2023. Add makefile and sync scripts --- annual/2023/Makefile | 17 +++++++++++++++++ annual/2023/sync | 18 ++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 annual/2023/Makefile create mode 100755 annual/2023/sync diff --git a/annual/2023/Makefile b/annual/2023/Makefile new file mode 100644 index 0000000..81abadc --- /dev/null +++ b/annual/2023/Makefile @@ -0,0 +1,17 @@ +SLIDES = agenda +PAPERS = annual-report + +all: \ + $(addsuffix .pdf, $(SLIDES)) \ + $(addsuffix .pdf, $(PAPERS)) + +$(addsuffix .pdf, $(SLIDES)): %.pdf: %.md + pandoc -s -f markdown -t beamer -o $@ < $< + +$(addsuffix .pdf, $(PAPERS)): %.pdf: %.md + pandoc -s -f markdown -t latex -o $@ < $< + +$(addsuffix .tex, $(PAPERS)): %.tex: %.md + pandoc -s -f markdown -t latex -o $@ < $< + + diff --git a/annual/2023/sync b/annual/2023/sync new file mode 100755 index 0000000..2efb15e --- /dev/null +++ b/annual/2023/sync @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +# Sync a set of sources with a Git repository target. Set target +# directory where the repository is found. Make sure that all pahts are +# absolute !!! + +mv ${0##*/} ${XDG_RUNTIME_DIR}/ + +TRG="$HOME/git/fripost/meetings/annual/2023" +SRC="$HOME/cloud-fripost/fripost/årsmöte" + +echo ${0##*/}: I: ${SRC} ${TRG} 1>&2 + +rsync -a --delete -P ${SRC}/ ${TRG}/ \ + | grep -iv "^sending" +git -C ${TRG} status --short --branch + +mv ${XDG_RUNTIME_DIR}/${0##*/} . -- cgit v1.2.3