diff options
author | Gustav Eek <gustav.eek@fripost.org> | 2024-05-30 07:57:03 +0200 |
---|---|---|
committer | Gustav Eek <gustav.eek@fripost.org> | 2024-06-10 08:55:34 +0200 |
commit | f7ba3ac8bdcf3ae8183f629c2d1d5a9d0fbb6a74 (patch) | |
tree | e0d41a7abb08601efa03226d92f2f0e60cd46897 /lib/Makefile | |
parent | 4bf6d364f3fdc60e35502952d3fd04e2ab724cab (diff) |
System. Provide general synchronization from shared folders
TODO. Document in README
Diffstat (limited to 'lib/Makefile')
-rw-r--r-- | lib/Makefile | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/lib/Makefile b/lib/Makefile index 535809f..2c53bed 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -8,6 +8,10 @@ MINUTES ?= # will be compiled with *minutes* template POLICY ?= # will be compiled with *by-laws* template REPORTS ?= # will be compiled with *report* template +# Repository root + +ROOT ?= $(shell git rev-parse --show-toplevel) + # Targets .PHONY: all @@ -48,20 +52,22 @@ $(addsuffix .pdf, $(REPORTS)): %.pdf: %.md .PHONY: archive ARCHIVE ?= archive -ROOT ?= $(shell git rev-parse --show-toplevel) SUFFIX ?= -$(subst /,,$(dir $(subst $(ROOT),,$(PWD)))) PDF ?= $(basename $(wildcard *.pdf)) -print: - @echo ARCHIVE = $(ARCHIVE) - @echo ROOT = $(ROOT) - @echo SUFFIX = $(SUFFIX) - archive: for p in $(PDF); do \ rsync $$p.pdf $(ROOT)/$(ARCHIVE)/$$p$(SUFFIX).pdf; \ done +# Sync from shared meeting working directory + +SRC ?= $(FRIPOST_SYNC_SRC) + +sync: + FRIPOST_SYNC_SRC="$(SRC)" $(ROOT)/lib/sync + + # Upload to server .PHONY: send |