[Build] Refactor for import style update

This commit is contained in:
2025-11-03 13:51:01 +01:00
parent 8442ac072a
commit 9ff16fa182
8 changed files with 62 additions and 10 deletions

50
build.sh Executable file
View File

@@ -0,0 +1,50 @@
#!/bin/sh
echo "
▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄▄▄ ▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄
█ █ █ █ █ █ █▄█ █ █ █ █ █ █ █ █ █ █ ▄ █ █ █
█ █ █ ▄ █▄ ▄█ ▄▄▄█ █ █ █▄█ █ ▄▄▄█ █ █ ▄ █ ▄▄▄█ █ █ █ █ ▄▄▄▄▄█
█ █ █ █▄█ █ █ █ █ █▄▄▄█ █ █ █ █▄▄▄█ █ █ █▄█ █ █▄▄▄█ █▄▄█▄█ █▄▄▄▄▄
█ █▄▄▄█ █ █ █ █ ▄▄▄██ █ █ ▄ █ ▄▄▄█ █▄▄▄█ ▄▄▄█ ▄▄▄█ ▄▄ █▄▄▄▄▄ █
█ █ ▄ █ █ █ █ █▄▄▄█ ▄ █ █ █ █ █ █▄▄▄█ █ █ █ █▄▄▄█ █ █ █▄▄▄▄▄█ █
█▄▄▄▄▄▄▄█▄█ █▄▄█ █▄▄▄█ █▄▄▄▄▄▄▄█▄▄█ █▄▄█ █▄▄█ █▄▄█▄▄▄▄▄▄▄█▄▄▄▄▄▄▄█▄▄▄█ █▄▄▄▄▄▄▄█▄▄▄█ █▄█▄▄▄▄▄▄▄█
==> Building <==
"
mkdir dist/
echo "\\input{\\dir/config/config.tex}" > ./dist/minimal.tex
# Build minimal scope
cat ./main/core.tex >> ./dist/minimal.tex
cat ./main/style/style.tex >> ./dist/minimal.tex
cat ./main/style/common.tex >> ./dist/minimal.tex
# Build most
cat ./dist/minimal.tex > ./dist/most.tex
cat ./main/math.tex >> ./dist/most.tex
cat ./main/cs.tex >> ./dist/most.tex
cat ./main/index.tex >> ./dist/most.tex
cat ./main/style/counters.tex >> ./dist/most.tex
cat ./main/style/cs.tex >> ./dist/most.tex
cat ./main/style/math.tex >> ./dist/most.tex
cat ./main/style/language.tex >> ./dist/most.tex
# Build recommended
cat ./dist/most.tex > ./dist/recommended.tex
cat ./extra/bib.tex >> ./dist/recommended.tex
cat ./extra/glossary.tex >> ./dist/recommended.tex
# Build full
cat ./dist/recommended.tex > ./dist/full.tex
cat ./extra/minted.tex >> ./dist/full.tex
# Copy letter
cp ./scopes/letter.tex ./dist/letter.tex
echo "==> Done"