-
Notifications
You must be signed in to change notification settings - Fork 1
/
install_dep.sh
executable file
·32 lines (29 loc) · 1.19 KB
/
install_dep.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
#!/bin/bash
<<COMMENT1
Use to automatically install dependencies for docoGen
* MiKTeX
* graphviz
Welcome to support different platform installation!
COMMENT1
if [[ "$OSTYPE" == "linux-gnu" ]]; then
echo "Linux platform detected. Installing..."
# =========== Install MiKTeX for LaTeX support ===========
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys D6BC243565B2087BC3F897C9277A7293F59E4889
echo "deb http://miktex.org/download/ubuntu xenial universe" | sudo tee /etc/apt/sources.list.d/miktex.list
sudo apt update && sudo apt install miktex
# install tex dependencies
sudo apt install texlive texstudio texlive-latex-extra
# =========== Install graphviz for graph support ===========
sudo apt install graphviz
elif [[ "$OSTYPE" == "darwin"* ]]; then
# Mac OSX
echo "Not Support MacOS script now"
elif [[ "$OSTYPE" == "cygwin" ]]; then
# POSIX compatibility layer and Linux environment emulation for Windows
echo "Not Support cygwin"
elif [[ "$OSTYPE" == "msys" ]]; then
# Lightweight shell and GNU utilities compiled for Windows (part of MinGW)
echo "Not Support msys"
fi
# upgrade package
sudo apt-get upgrade