Some more attempted fixes

This commit is contained in:
2026-02-19 17:59:21 +01:00
parent 36ced5e37a
commit 165dedfe30
4 changed files with 12 additions and 11 deletions

View File

@@ -4,10 +4,10 @@ cd build/
python build.py
cd ..
loc="s"
read -p "Local (l) or system (s) installation? (Defaults to system) " loc
loc="l"
read -p "Local (l) or system (s) installation? (Defaults to local) " loc
if [[ "$loc" == "l" ]]; then
if [[ "$loc" != "s" ]]; then
if [[ -z "${TEXMFHOME+x}" ]]; then
export TEXMFHOME=~/texmf/
fi
@@ -15,11 +15,8 @@ if [[ "$loc" == "l" ]]; then
mkdir -p $TEXMFHOME/tex/latex/janishutz-helpers
cp ./janishutz-helpers.sty $TEXMFHOME/tex/latex/janishutz-helpers/
else
# sudo mkdir -p /usr/share/texmf/tex/latex/janishutz-helpers
# sudo cp ./janishutz-helpers.sty /usr/share/texmf/tex/latex/janishutz-helpers/
sudo mkdir -p /usr/share/texmf-dist/tex/latex/janishutz-helpers/
sudo cp ./janishutz-helpers.sty /usr/share/texmf-dist/tex/latex/janishutz-helpers/
sudo chmod -R 777 /usr/share/texmf-dist/tex/latex/janishutz-helpers
sudo mkdir -p /usr/share/texmf/tex/latex/janishutz-helpers
sudo cp ./janishutz-helpers.sty /usr/share/texmf/tex/latex/janishutz-helpers/
echo "Updating file database"
sudo texhash
fi