Some more attempted fixes
This commit is contained in:
13
install.sh
13
install.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user