Update dependencies.sh

This commit is contained in:
Lakshay 2022-12-15 00:21:54 +05:30 committed by GitHub
parent aadc780b44
commit 8ee0952d33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
dependNix="libboost-chrono-dev \
libboost-date-time-dev \
@ -13,15 +13,15 @@ dependWin="mingw-w64-x86_64-boost \
mingw-w64-x86_64-openssl \
mingw-w64-x86_64-zlib"
kernel=`uname -a`
kernel=$(uname -a)
case "$kernel" in
*Ubuntu*|*Debian*)
sudo apt install $dependNix;;
sudo apt install "$dependNix";;
*gentoo*)
sudo emerge --deep --newuse dev-libs/boost dev-libs/openssl;;
*MINGW64*)
pacman -S $dependWin;;
pacman -S "$dependWin";;
*)
echo "Just install libboost and libopenssl dev packages on your pc";;
printf "Just install libboost and libopenssl dev packages on your pc\n";;
esac