From a5ccb910537e96e519b27db39c61cb07795a4b69 Mon Sep 17 00:00:00 2001
From: jaseg <git-bigdata-wsl-arch@jaseg.de>
Date: Sun, 5 Jul 2020 16:23:54 +0200
Subject: ma: auto-build uncensored version

---
 ma/Makefile         | 3 +++
 ma/safety_reset.tex | 4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ma/Makefile b/ma/Makefile
index 2999ef9..3926de2 100644
--- a/ma/Makefile
+++ b/ma/Makefile
@@ -24,6 +24,9 @@ all: safety_reset.pdf
 	pdflatex -shell-escape -jobname $*-extra-appendices "\def\includenotebooks{1} \def\includefirmwaresources{1} \input{$<}"
 	biber $*-extra-appendices 
 	pdflatex -shell-escape -jobname $*-extra-appendices "\def\includenotebooks{1} \def\includefirmwaresources{1} \input{$<}"
+	pdflatex -shell-escape -jobname $*-print-private-data "\def\includeprivatedata{1} \input{$<}"
+	biber $*-extra-appendices 
+	pdflatex -shell-escape -jobname $*-print-private-data "\def\includeprivatedata{1} \input{$<}"
 
 .PHONY: preview
 preview:
diff --git a/ma/safety_reset.tex b/ma/safety_reset.tex
index 38bc54a..3728adb 100644
--- a/ma/safety_reset.tex
+++ b/ma/safety_reset.tex
@@ -89,7 +89,9 @@
 \autor{Jan Sebastian Götte}
 \gebdatum{\rule{2cm}{12pt}} % Geburtsdatum des Autors
 \gebort{\rule{3cm}{12pt}} % Geburtsort des Autors
-\InputIfFileExists{private-data.tex}{}{}
+\ifdefined\includeprivatedata
+\input{private-data.tex}{}{}
+\fi
 \gutachter{Prof. Dr. Björn Scheuermann}{Prof. Dr.-Ing. Eckhard Grass}
 \mitverteidigung
 \makeTitel
-- 
cgit