#!/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