From 31673b10d7bf3175d5de26734dd934bbbfc4ec18 Mon Sep 17 00:00:00 2001 From: Gustav Eek Date: Tue, 16 Jun 2020 07:45:26 +0200 Subject: Minutes May 25, 2020. Makefile and gitinore for completed minutes. --- .gitignore | 3 +++ 2020/Makefile | 7 ++++--- resources/Makefile-common | 6 ++++++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 8c5b6de..ec7fe88 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,6 @@ test.d test.d/test *_ *_.tex + +# Completed minutes (using sed scripts) +*-complete.tex \ No newline at end of file diff --git a/2020/Makefile b/2020/Makefile index 0c8ebc8..26f6bd1 100644 --- a/2020/Makefile +++ b/2020/Makefile @@ -1,13 +1,14 @@ # Makefile for minutes -MINUTES := $(basename $(shell ls *.tex 2> /dev/null)) +COMPLETES := $(subst .sed.gpg,-complete, $(wildcard *.sed.gpg)) +MINUTES := $(basename $(shell ls *.tex 2> /dev/null | grep -v complete)) \ common-makefile = ../resources/Makefile-common help: - @make -s -f $(common-makefile) help SEND_FILES="$(MINUTES)" + @make -s -f $(common-makefile) help SEND_FILES="$(MINUTES) $(COMPLETES)" -all: $(MINUTES) +all: $(MINUTES) $(COMPLETES) %: make -f $(common-makefile) compile FILE=$* diff --git a/resources/Makefile-common b/resources/Makefile-common index c64793f..ce35c92 100644 --- a/resources/Makefile-common +++ b/resources/Makefile-common @@ -48,6 +48,12 @@ $(output): $(input) $(preamble) $(files-tex) $(files-jpg) $(files-pdf) latex_count=`expr $$latex_count - 1`;\ done; +# Special treatment of minutes complemented with secrets +%-complete.tex: %.tex %.sed.gpg + gpg --decrypt < $(subst .tex,.sed.gpg,$<) > $(subst .tex,_.sed,$<) + sed -f $(subst .tex,_.sed,$<) < $< > $@ + rm -f $(subst .tex,_.sed,$<) + # Clean up clean: rm -f *.aux *.bbl *.dvi *.log *.nav *.out *.snm *.toc *~ -- cgit v1.2.3