-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.sh
executable file
·43 lines (37 loc) · 1.24 KB
/
build.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 "Building the project..."
usage() { echo "Usage: $0 [-h] [-d]" 1>&2; exit 1; }
while getopts 'hd' arg; do
case "${arg}" in
h)
usage
;;
d)
echo "Installing dependencies:"
echo "Installing Python dependencies"
pip install -r lectures/requirements.txt
echo "Installing LaTeX dependencies"
sudo apt-get -qq update
sudo apt-get install -y \
texlive-latex-recommended \
texlive-latex-extra \
texlive-fonts-recommended \
texlive-fonts-extra \
texlive-xetex \
latexmk \
xindy \
texlive-luatex \
dvipng \
ghostscript \
cm-super
echo "Install IJulia and Setup Project"
julia -e 'using Pkg; Pkg.add("IJulia");'
julia --project=lectures --threads auto -e 'using Pkg; Pkg.instantiate();'
;;
*)
usage
;;
esac
done
echo "Building the lectures"
jupyter-book build lectures/