Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
66f55d2cca | |||
7733184399 |
@ -25,7 +25,8 @@ twister_deps_supported(){
|
|||||||
echo -e "\nPlease supply one of the following aruments: \n\n"
|
echo -e "\nPlease supply one of the following aruments: \n\n"
|
||||||
|
|
||||||
echo -e "void\n"
|
echo -e "void\n"
|
||||||
echo -e "fedora\n\n"
|
echo -e "fedora\n"
|
||||||
|
echo -e "debian\n\n"
|
||||||
|
|
||||||
echo -e "Example: ${0} deps void\n\n"
|
echo -e "Example: ${0} deps void\n\n"
|
||||||
}
|
}
|
||||||
@ -34,6 +35,7 @@ twister_deps(){
|
|||||||
local curDistro="${1}"
|
local curDistro="${1}"
|
||||||
local voidPkgs="git boost boost-devel db db-devel libressl-devel base-devel"
|
local voidPkgs="git boost boost-devel db db-devel libressl-devel base-devel"
|
||||||
local fedoraPkgs="git boost boost-devel libdb-cxx-devel openssl-devel"
|
local fedoraPkgs="git boost boost-devel libdb-cxx-devel openssl-devel"
|
||||||
|
local debianPkgs="git autoconf libtool build-essential libboost-all-dev libssl-dev libdb++-dev libminiupnpc-dev automake"
|
||||||
|
|
||||||
if [[ "${curDistro}" == "void" ]];then
|
if [[ "${curDistro}" == "void" ]];then
|
||||||
sudo xbps-install -S ${voidPkgs}
|
sudo xbps-install -S ${voidPkgs}
|
||||||
@ -41,6 +43,10 @@ twister_deps(){
|
|||||||
elif [[ "${curDistro}" = "fedora" ]];then
|
elif [[ "${curDistro}" = "fedora" ]];then
|
||||||
sudo dnf install ${fedoraPkgs}
|
sudo dnf install ${fedoraPkgs}
|
||||||
sudo dnf group install "Development Tools"
|
sudo dnf group install "Development Tools"
|
||||||
|
|
||||||
|
elif [[ "${curDistro}" = "debian" ]];then
|
||||||
|
sudo apt install ${debianPkgs}
|
||||||
|
|
||||||
else
|
else
|
||||||
echo -e "${LRED}Distro not supported ${NC}\n"
|
echo -e "${LRED}Distro not supported ${NC}\n"
|
||||||
echo -e "${YCYAN}Dependencies: boost, boost-devel, libressl-devel, db, db-devel, base-devel${NC}"
|
echo -e "${YCYAN}Dependencies: boost, boost-devel, libressl-devel, db, db-devel, base-devel${NC}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user