aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@fripost.org>2020-06-16 07:45:26 +0200
committerGustav Eek <gustav.eek@fripost.org>2020-06-21 21:41:34 +0200
commit31673b10d7bf3175d5de26734dd934bbbfc4ec18 (patch)
tree7ffebac3d3e69ae0ce6687d4c1a5c37eda3c83bb
parentcf28765285f552845d61f6d5a7897894f7a994b9 (diff)
Minutes May 25, 2020. Makefile and gitinore for completed minutes.
-rw-r--r--.gitignore3
-rw-r--r--2020/Makefile7
-rw-r--r--resources/Makefile-common6
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 *~