2024-03-05 21:47:14 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Logging function
|
|
|
|
log() {
|
|
|
|
printf "$(tput setaf 4)$(tput bold)>>>>> %s <<<<<$(tput sgr0)\n" "$1"
|
|
|
|
}
|
|
|
|
|
|
|
|
inf() {
|
|
|
|
printf "$(tput setaf 2)╚═══ᐳ $(tput sgr 0 1)$(tput setaf 2)%s$(tput sgr0)\n" "$1"
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Environment variables
|
2024-03-08 17:47:55 +00:00
|
|
|
export TEXMF=texmf/tex/latex
|
2024-03-05 21:47:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{- if (ne .latex false) -}}
|
2024-03-08 16:49:22 +00:00
|
|
|
log "Begin LaTeX repo initialization"
|
2024-03-05 21:47:14 +00:00
|
|
|
|
|
|
|
texhash "${HOME}/${TEXMF}"
|
|
|
|
|
2024-03-08 16:49:22 +00:00
|
|
|
log "Finish LaTeX repo initialization"
|
2024-03-05 21:47:14 +00:00
|
|
|
{{- end }}
|
|
|
|
|