/
install.sh
executable file
·44 lines (39 loc) · 1.68 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
# This script needs to be run as admin
echo "Checking if pdflatex install is needed"
if [ "$ReportA" == "True" ]; then
apt-get -qq install texlive-full
fi
if [ "$Drivers" == "True" ]; then
apt-get -qq install texlive-latex-base
fi
if [ "$ReportA" == "True" ] || [ "$Drivers" == "True" ]; then
echo "Installing pdflatex requirements"
pushd /usr/share/texmf-texlive/
wget http://mirrors.ctan.org/install/macros/latex/contrib/etoolbox.tds.zip
wget http://mirrors.ctan.org/install/macros/latex/contrib/adjustbox.tds.zip
wget http://mirrors.ctan.org/install/macros/latex/contrib/collectbox.tds.zip
wget http://mirrors.ctan.org/install/macros/latex/contrib/pdfcomment.tds.zip
wget http://mirrors.ctan.org/install/macros/latex/contrib/datetime2.tds.zip
wget http://mirrors.ctan.org/install/macros/generic/tracklang.tds.zip
wget http://mirrors.ctan.org/install/macros/latex/contrib/bezos.tds.zip
wget http://mirrors.ctan.org/install/macros/latex/contrib/hyperref.tds.zip
wget http://mirrors.ctan.org/install/macros/latex/contrib/oberdiek.tds.zip
wget http://mirrors.ctan.org/install/macros/generic/ifxetex.tds.zip
wget http://mirrors.ctan.org/install/macros/latex/contrib/standalone.tds.zip
unzip -o etoolbox.tds.zip
unzip -o adjustbox.tds.zip
unzip -o collectbox.tds.zip
unzip -o pdfcomment.tds.zip
unzip -o datetime2.tds.zip
unzip -o tracklang.tds.zip
unzip -o bezos.tds.zip
unzip -o hyperref.tds.zip
unzip -o oberdiek.tds.zip
unzip -o ifxetex.tds.zip
unzip -o standalone.tds.zip
texhash
popd
else
echo "pdflatex is not required for these tests (ReportA is not set to \"True\")"
fi