Merge remote-tracking branch 'refs/remotes/origin/development' into development

This commit is contained in:
Václav Šmejkal 2023-11-18 20:08:29 +01:00
commit 3d6f2b8293
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

11
configure.sh Normal file → Executable file
View File

@ -25,12 +25,21 @@ if [[ $(id -u) != "0" ]] && [[ $1 != "force" ]]; then
fi fi
COMMON="gcc make tmux" COMMON="gcc make tmux"
ARCH_GENTOO_COMMON="$COMMON json-c curl libgit2"
# Get COMMAND # Get COMMAND
if [[ $DISTRO == "Arch" ]]; then if [[ $DISTRO == "Arch" ]]; then
COMMAND="pacman -S --needed --noconfirm $COMMON json-c curl libgit2 libyaml" COMMAND="pacman -S --needed --noconfirm $ARCH_GENTOO_COMMON libyaml"
elif [[ $DISTRO == "Ubuntu" ]] || [[ $DISTRO == "Debian" ]]; then elif [[ $DISTRO == "Ubuntu" ]] || [[ $DISTRO == "Debian" ]]; then
COMMAND="apt install -y $COMMON libjson-c-dev libcurl4-nss-dev libgit2-dev libyaml-dev" COMMAND="apt install -y $COMMON libjson-c-dev libcurl4-nss-dev libgit2-dev libyaml-dev"
elif [[ $DISTRO == "Gentoo" ]]; then
COMMAND="emerge -vn $ARCH_GENTOO_COMMON dev-libs/libyaml"
# Add
echo "LDPATH=/usr/lib/libwhy2.so" > /etc/env.d/99why2-core
echo "LDPATH=/usr/lib/libwhy2-logger.so" > /etc/env.d/99why2-logger
echo "LDPATH=/usr/lib/libwhy2-chat.so" > /etc/env.d/99why2-chat
env-update && source /etc/profile
else else
# 'Unsupported' distro # 'Unsupported' distro
echo "It seems you are using unsupported distribution... Don't worry, just install 'gcc', 'json-c', 'curl', 'libgit2', 'tmux', 'libyaml' and 'make' and you'll be fine." echo "It seems you are using unsupported distribution... Don't worry, just install 'gcc', 'json-c', 'curl', 'libgit2', 'tmux', 'libyaml' and 'make' and you'll be fine."