-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup_ubuntu.sh
More file actions
executable file
·35 lines (24 loc) · 985 Bytes
/
Copy pathsetup_ubuntu.sh
File metadata and controls
executable file
·35 lines (24 loc) · 985 Bytes
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
#!/bin/bash
# Install everything needed to build the presentation on Ubuntu
echo "Updating Repository List"
sudo apt update -y -q
echo "Installing Pandoc"
sudo apt install -y -q pandoc
echo "Installing pip"
sudo apt install -y -q python3-pip
echo "Installing matplotlib (for pandoc-pyplot)"
python3 -m pip install -U matplotlib
echo "Installing numpy (for pandoc-pyplot)"
python3 -m pip install -U numpy
# https://github.com/LaurentRDC/pandoc-plot
if [[ ! -f "pandoc-plot" ]]
then
echo "Downlaoding pandoc-plot"
wget https://github.com/LaurentRDC/pandoc-plot/releases/download/0.3.0.0/pandoc-plot-linux-x86_64.tar.xz -O pandoc-plot-linux-x86_64.tar.xz
echo "Checking if hash matches what's expected..."
md5sum -c <<<"de5f748b900c79f5506740866495879d pandoc-plot-linux-x86_64.tar.xz"
echo "Decompressing pandoc-plot"
tar -xf pandoc-plot-linux-x86_64.tar.xz
echo "Deleting pandoc-plot-linux-x86_64.tar.xz"
rm pandoc-plot-linux-x86_64.tar.xz
fi