-
Notifications
You must be signed in to change notification settings - Fork 3
/
install.sh
executable file
·83 lines (71 loc) · 1.58 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/usr/bin/env bash
#
# install.sh
#
# Installs dependencies for markdown-memo.
#
# See: https://github.com/rreece/markdown-memo
#
# author: Ryan Reece <http://rreece.github.io/>
# created: 2022-12-18
#
###############################################################################
get_os()
{
local _GET_OS="unknown"
local _UNAME_OS=$(uname)
case "${_UNAME_OS}" in
Darwin)
_GET_OS="mac"
;;
Linux)
_GET_OS="linux"
;;
*)
true
;;
esac
echo ${_GET_OS}
}
install_for_mac()
{
echo "Installing for mac..."
}
install_for_linux()
{
echo "Installing for linux..."
sudo apt-get -y update
sudo apt-get -y install make
sudo apt-get -y install texlive-latex-extra
sudo apt-get -y install pandoc
# pandoc-citeproc
# pandoc-crossref
# https://askubuntu.com/questions/1335772/using-pandoc-crossref-on-ubuntu-20-04
wget -c https://github.com/lierdakil/pandoc-crossref/releases/download/v0.3.10.0a/pandoc-crossref-Linux.tar.xz
tar -xf pandoc-crossref-Linux.tar.xz
sudo mv pandoc-crossref /usr/local/bin/
sudo chmod a+x /usr/local/bin/pandoc-crossref
sudo mkdir -p /usr/local/man/man1
sudo mv pandoc-crossref.1 /usr/local/man/man1
echo ""
echo "MY PATH is"
echo $PATH
echo ""
echo `which pandoc-crossref`
echo ""
sudo apt-get -y install python3-pandas
# matplotlib
# xpdf
}
GET_OS=$(get_os)
case "${GET_OS}" in
mac)
install_for_mac
;;
linux)
install_for_linux
;;
*)
true
;;
esac