[CORE] chore: prepare for new helpers import scheme

This commit is contained in:
2026-08-05 10:50:54 +02:00
parent 454e617b4f
commit a1849b4312
4 changed files with 48 additions and 0 deletions
+3
View File
@@ -327,3 +327,6 @@ TSWLatexianTemp*
# option is specified. Footnotes are the stored in a file with suffix Notes.bib. # option is specified. Footnotes are the stored in a file with suffix Notes.bib.
# Uncomment the next line to have this generated file ignored. # Uncomment the next line to have this generated file ignored.
#*Notes.bib #*Notes.bib
# LaTeX Helpers utilities
helpers*.tex
+3
View File
@@ -0,0 +1,3 @@
[submodule "latex-helpers"]
path = latex-helpers
url = https://git.janishutz.com/janishutz/latex
Submodule
+1
Submodule latex-helpers added at c1cec5894c
Executable
+41
View File
@@ -0,0 +1,41 @@
#!/bin/sh
set -e
createFiles() {
echo "% Warning: This is an auto-generated file. To regenerate it, use the setup script.
% This file is used as import for generating the summaries
\\input{$1/janishutz-helpers.tex}" >./helpers.tex
echo "% Warning: This is an auto-generated file. To regenerate it, use the setup script.
% This file is used as import for generating the older summaries
\\input{$1/old/janishutz-helpers-v1.tex}" >./helpers-old.tex
}
echo "
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
██░▄▄▄█▄▄░▄▄██░██░█████░▄▄▄░█░██░█░▄▀▄░█░▄▀▄░█░▄▄▀█░▄▄▀██▄██░▄▄█░▄▄
██░▄▄▄███░████░▄▄░█▄▄██▄▄▄▀▀█░██░█░█▄█░█░█▄█░█░▀▀░█░▀▀▄██░▄█░▄▄█▄▄▀
██░▀▀▀███░████░██░█████░▀▀▀░██▄▄▄█▄███▄█▄███▄█▄██▄█▄█▄▄█▄▄▄█▄▄▄█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
-> Basic Setup <-
-----------------------
=> This script will link the LaTeX helpers to the build import
"
read -p "Do you want to use the provided git submodule for the compilation? (Y/n) " usesubmodule
if [[ $usesubmodule != 'n' ]]; then
if git submodule status | grep --quiet '^-'; then
echo "Submodule not yet initialized, initializing..."
else
echo "Submodule already set up"
fi
createFiles $(pwd)/latex-helpers
else
read -e -p "Where are the helper files located (absolute path to folder only, tab-completion enabled)? " helperpath
createFiles $helperpath
echo "Helpers set up. You may experience issues if you have not entered an absolute path. If so, simply rerun this script to regenerate the files!"
fi