This commit is contained in:
Filip Gralinski 2019-12-02 20:10:16 +01:00
parent 0a726248c1
commit 0b4bf1fbae
4 changed files with 4 additions and 1 deletions

View File

@ -3,5 +3,6 @@
"thesis_surname": "iksinski",
"thesis_author": "Jan Iksiński",
"thesis_title": "Przykładowa praca",
"thesis_locale": "pl_PL",
"amu_id": "s123456"
}

View File

@ -3,4 +3,5 @@ default_context:
thesis_surname: '{{ cookiecutter.thesis_surname }}'
thesis_author: '{{ cookiecutter.thesis_author }}'
thesis_title: '{{ cookiecutter.thesis_title }}'
thesis_locale: '{{ cookiecutter.thesis_locale }}'
amu_id: '{{ cookiecutter.amu_id }}'

View File

@ -10,6 +10,7 @@ CONTENT_TEX_SOURCES=$(filter-out $(THESIS_ID).tex metadata.tex preamble.tex, $(w
CURRENT_DIR=$(shell pwd)
AUTOZOIL_DIR?=/opt/autozoil
AUTOZOIL_LOCALE={{cookiecutter.thesis_locale}}
CONTENT_TEX_SOURCES_WITH_DIR := $(addprefix $(CURRENT_DIR)/, $(CONTENT_TEX_SOURCES))
SCOREFILES=$(shell perl extract-score-files.pl $(CONTENT_TEX_SOURCES))
@ -31,7 +32,7 @@ scores/%.txt:
curl "https://gonito.net/api/txt/score/"$* -o $@
autozoil-log.txt: $(CONTENT_TEX_SOURCES)
cd $(AUTOZOIL_DIR) && set -o pipefail && ./autozoil --locale en_US $(CONTENT_TEX_SOURCES_WITH_DIR) --format xml --alt-log-file $(CURRENT_DIR)/$(THESIS_ID).log | tee $(CURRENT_DIR)/$@
cd $(AUTOZOIL_DIR) && set -o pipefail && ./autozoil --locale $(AUTOZOIL_LOCALE) $(CONTENT_TEX_SOURCES_WITH_DIR) --format xml --alt-log-file $(CURRENT_DIR)/$(THESIS_ID).log | tee $(CURRENT_DIR)/$@
$(THESIS_ID).zip:
$(clean_latex_stuff)