Store to move back to normal tex files
This commit is contained in:
22
install.sh
Executable file
22
install.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd build/
|
||||
python build.py
|
||||
cd ..
|
||||
|
||||
loc="s"
|
||||
read -p "Local (l) or system (s) installation? (Defaults to system) " loc
|
||||
|
||||
if [[ "$loc" == "l" ]]; then
|
||||
if [[ -z "${TEXMFHOME+x}" ]]; then
|
||||
export TEXMFHOME=~/texmf/
|
||||
fi
|
||||
|
||||
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/
|
||||
echo "Updating file database"
|
||||
sudo texhash
|
||||
fi
|
||||
Reference in New Issue
Block a user