diff --git a/cookiecutter.json b/cookiecutter.json index 524454d..0885390 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -3,5 +3,6 @@ "thesis_surname": "iksinski", "thesis_author": "Jan Iksiński", "thesis_title": "Przykładowa praca", + "thesis_locale": "pl_PL", "amu_id": "s123456" } diff --git a/{{cookiecutter.thesis_type}}-{{cookiecutter.thesis_surname}}/.cookiecutter.yml b/{{cookiecutter.thesis_type}}-{{cookiecutter.thesis_surname}}/.cookiecutter.yml index 70d6f54..ce713bd 100644 --- a/{{cookiecutter.thesis_type}}-{{cookiecutter.thesis_surname}}/.cookiecutter.yml +++ b/{{cookiecutter.thesis_type}}-{{cookiecutter.thesis_surname}}/.cookiecutter.yml @@ -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 }}' diff --git a/Jenkinsfile b/{{cookiecutter.thesis_type}}-{{cookiecutter.thesis_surname}}/Jenkinsfile similarity index 100% rename from Jenkinsfile rename to {{cookiecutter.thesis_type}}-{{cookiecutter.thesis_surname}}/Jenkinsfile diff --git a/{{cookiecutter.thesis_type}}-{{cookiecutter.thesis_surname}}/Makefile b/{{cookiecutter.thesis_type}}-{{cookiecutter.thesis_surname}}/Makefile index 7a91e10..8433226 100644 --- a/{{cookiecutter.thesis_type}}-{{cookiecutter.thesis_surname}}/Makefile +++ b/{{cookiecutter.thesis_type}}-{{cookiecutter.thesis_surname}}/Makefile @@ -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)