-
Notifications
You must be signed in to change notification settings - Fork 146
/
install.sh
executable file
·45 lines (33 loc) · 1.39 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
echo "[Starting installation]"
#detect OS
os_type=$(uname -s)
echo "Detecting OS..."
#place folders based on OS
if [ "$os_type" == "Darwin" ]; then
install_folder=~/Library/texmf
echo "Detected Mac OS X"
elif [ "$os_type" == "Linux" ]; then
install_folder=~/texmf
echo "Detected Linux"
else
echo "Could not detect OS type... Exciting"
exit
fi
#make folders - sty
mkdir -p $install_folder/tex/latex/beamer/themes/{color,inner,outer,theme}
#make folders - for graphics
mkdir -p $install_folder/tex/generic/images
#copy .sty files to coresponding folders
for beamer_temp in Aalborg AAUsidebar AAUsimple; do
beamer_temp_lower=$(echo "$beamer_temp" | awk '{print tolower($0)}')
cp aauBeamer/$beamer_temp_lower/beamercolortheme$beamer_temp.sty $install_folder/tex/latex/beamer/themes/color/
cp aauBeamer/$beamer_temp_lower/beamerinnertheme$beamer_temp.sty $install_folder/tex/latex/beamer/themes/inner/
cp aauBeamer/$beamer_temp_lower/beameroutertheme$beamer_temp.sty $install_folder/tex/latex/beamer/themes/outer/
cp aauBeamer/$beamer_temp_lower/beamertheme$beamer_temp.sty $install_folder/tex/latex/beamer/themes/theme/
done
#copy graphics
cp -R aauBeamer/aalborg/AAUgraphics $install_folder/tex/generic/
cp -R aauPoster/AAUgraphics $install_folder/tex/generic/
cp -R aauReportTemplate/AAUgraphics $install_folder/tex/generic/
echo "[Installation done]"