This repository has been archived by the owner on Jun 25, 2023. It is now read-only.
forked from g3force/ssl-autorefs
-
Notifications
You must be signed in to change notification settings - Fork 2
/
installDeps.sh
executable file
·72 lines (56 loc) · 1.65 KB
/
installDeps.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
#!/bin/bash
# stop on errors
set -e
if [ "$(id -nu)" != "root" ]; then
echo "Must be called as root"
exit 1
fi
PKG_MGR_FOUND=0
if which dnf 2>/dev/null >/dev/null; then
PKG_MGR_FOUND=1
FLAGS="-y"
echo "Detected dnf package manager"
dnf $FLAGS install git
echo "################################"
echo "## erforce"
echo "################################"
dnf $FLAGS install cmake protobuf-compiler qt5-devel luajit-devel gcc-c++
echo "################################"
echo "## tigers"
echo "################################"
dnf $FLAGS install java-11-openjdk-devel
fi
if which apt-get 2>/dev/null >/dev/null; then
PKG_MGR_FOUND=1
FLAGS="-qq -y"
echo "Detected apt package manager"
export DEBIAN_FRONTEND="noninteractive"
apt-get $FLAGS update
apt-get $FLAGS install git
echo "################################"
echo "## erforce"
echo "################################"
apt-get $FLAGS install cmake protobuf-compiler qtbase5-dev libluajit-5.1-dev g++
echo "################################"
echo "## tigers"
echo "################################"
apt-get $FLAGS install openjdk-11-jdk
fi
if which pacman 2>/dev/null >/dev/null; then
PKG_MGR_FOUND=1
FLAGS="--needed"
echo "Detected Arch Linux (Pacman)"
pacman -S $FLAGS git
echo "################################"
echo "## erforce"
echo "################################"
pacman -S $FLAGS cmake protobuf qt5-base luajit gcc
echo "################################"
echo "## tigers"
echo "################################"
pacman -S $FLAGS jdk11-openjdk
fi
if [ $PKG_MGR_FOUND == 0 ]; then
echo "Your distribution is not yet supported"
exit 1
fi