From bc7bc188007be1f0bdf8a6f9de9a8bd8303c57c0 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 4 Apr 2025 09:49:22 -0300 Subject: use bash and fix erroneous expansion of escape sequences --- latex/Makefile | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/latex/Makefile b/latex/Makefile index c93324b1..484aee02 100644 --- a/latex/Makefile +++ b/latex/Makefile @@ -78,20 +78,20 @@ define generateSetTexRules $(SETS_TEX_DIR)/$(1).tex: $(wildcard $(CARDS_TEX_DIR)/$(1)/*.tex) $(MAKEFILE_LIST) @echo "generating $(1) tex" @if test \( ! \( -d $$(@D) \) \) ;then mkdir -p $$(@D);fi - $(VERBOSE) echo "\documentclass[a4paper,landscape]{article}" > $$@ - $(VERBOSE) echo "\usepackage[margin=6mm,top=5mm]{geometry}" >> $$@ - $(VERBOSE) echo "\input{libs.tex}" >> $$@ - $(VERBOSE) echo "\input{colors.tex}" >> $$@ - $(VERBOSE) echo "\input{tikzcards.tex}" >> $$@ - $(VERBOSE) echo "\usepackage{standalone}" >> $$@ - $(VERBOSE) echo "\begin{document}" >> $$@ - $(VERBOSE) echo "\begin{center}" >> $$@ - $(VERBOSE) echo "\pagestyle{empty}" >> $$@ + $(VERBOSE) echo '\documentclass[a4paper,landscape]{article}' > $$@ + $(VERBOSE) echo '\usepackage[margin=6mm,top=5mm]{geometry}' >> $$@ + $(VERBOSE) echo '\input{libs.tex}' >> $$@ + $(VERBOSE) echo '\input{colors.tex}' >> $$@ + $(VERBOSE) echo '\input{tikzcards.tex}' >> $$@ + $(VERBOSE) echo '\usepackage{standalone}' >> $$@ + $(VERBOSE) echo '\\begin{document}' >> $$@ + $(VERBOSE) echo '\\begin{center}' >> $$@ + $(VERBOSE) echo '\pagestyle{empty}' >> $$@ $(VERBOSE)for card in $(wildcard $(CARDS_TEX_DIR)/$(1)/*.tex); do \ rel_card=$$$${card#"$(LATEX_ROOT)/"}; \ echo "\includestandalone{$$$${rel_card%.tex}}" >> $$@; done - $(VERBOSE) echo "\end{center}" >> $$@ - $(VERBOSE) echo "\end{document}" >> $$@ + $(VERBOSE) echo '\end{center}' >> $$@ + $(VERBOSE) echo '\end{document}' >> $$@ endef # Generate set tex rules -- cgit v1.2.3