mirror of
https://github.com/janishutz/eth-summaries.git
synced 2026-09-10 19:15:25 +02:00
[CORE] chore: prepare for new helpers import scheme
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
@@ -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
|
||||||
Reference in New Issue
Block a user