From f4b47388257258be176f13c67604296e06663081 Mon Sep 17 00:00:00 2001 From: Niklas Date: Tue, 17 May 2022 21:29:18 +0200 Subject: [PATCH] Enhance installation script: more verbose and add update tex databse with texhash command --- beamer/install_beamer_theme.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/beamer/install_beamer_theme.sh b/beamer/install_beamer_theme.sh index 4293a46..0f49f3c 100755 --- a/beamer/install_beamer_theme.sh +++ b/beamer/install_beamer_theme.sh @@ -1,7 +1,14 @@ #!/bin/bash -sudo mkdir -p /usr/local/share/texmf/tex/latex/beamerthemeNik/ +path=/usr/local/share/texmf/tex/latex/beamerthemeNik/ -sudo cp ./beamercolorthemeNik.sty /usr/local/share/texmf/tex/latex/beamerthemeNik/ -sudo cp ./beamerfontthemeNik.sty /usr/local/share/texmf/tex/latex/beamerthemeNik/ -sudo cp ./beamerthemeNik.sty /usr/local/share/texmf/tex/latex/beamerthemeNik/ +echo "Creating necessary path $path ..." +sudo mkdir -p $path + +echo "Copying .sty-Files ..." +sudo cp ./beamercolorthemeNik.sty $path +sudo cp ./beamerfontthemeNik.sty $path +sudo cp ./beamerthemeNik.sty $path + +echo "Refreshing TeX Database ..." +sudo texhash