forked from JarbasAI/ZZZ-JarbasAI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
full_update_light.sh
executable file
·78 lines (66 loc) · 2.36 KB
/
full_update_light.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
./mycroft.sh stop
# WARNING overwrite all local changes
git fetch origin patch-15
git reset --hard FETCH_HEAD
# Clean all files not in repo, will erase keys and all data in this folder
# git clean -df
found_exe() {
hash "$1" 2>/dev/null
}
install_deps() {
echo "Installing packages..."
if found_exe sudo; then
SUDO=sudo
fi
if found_exe apt-get; then
$SUDO apt-get install -y \
git \
python \
python-dev \
python-setuptools \
python-virtualenv \
python-gobject-dev \
virtualenvwrapper \
libtool \
libffi-dev \
libssl-dev \
autoconf \
automake \
bison \
swig \
libglib2.0-dev \
s3cmd \
portaudio19-dev \
mpg123 \
screen \
flac \
curl \
libicu-dev \
pkg-config \
automake \
libjpeg-dev \
python-opencv \
libfann-dev \
libgmp-dev \
gnupg
elif found_exe pacman; then
echo "${green}Jarbas untested for pacman, expect trouble"
$SUDO pacman -S --needed git python2 python2-pip python2-setuptools python2-virtualenv python2-gobject python-virtualenvwrapper libtool libffi openssl autoconf bison swig glib2 s3cmd portaudio mpg123 screen flac curl pkg-config icu automake libjpeg-turbo
elif found_exe dnf; then
echo "${green}Jarbas untested for dnf, expect trouble"
$SUDO dnf install -y git python python-devel python-pip python-setuptools python-virtualenv pygobject2-devel python-virtualenvwrapper libtool libffi-devel openssl-devel autoconf bison swig glib2-devel s3cmd portaudio-devel mpg123 mpg123-plugins-pulseaudio screen curl pkgconfig libicu-devel automake libjpeg-turbo-devel fann-devel
else
if found_exe tput; then
green="$(tput setaf 2)"
blue="$(tput setaf 4)"
reset="$(tput sgr0)"
fi
echo
echo "${green}Could not find package manager"
echo "${green}Make sure to manually install:${blue} git python 2 python-setuptools python-virtualenv pygobject virtualenvwrapper libtool libffi openssl autoconf bison swig glib2.0 s3cmd portaudio19 mpg123 flac curl fann"
echo $reset
fi
}
install_deps
./update-dev-light.sh
screen -list