Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 committed Oct 5, 2024
1 parent 86fe020 commit 4ea2912
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
25 changes: 11 additions & 14 deletions install-build-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,43 +7,40 @@ set -e

set -x

case "$ID-$VERSION_ID" in
ubuntu-20.* | pop-20.*)
apt-get update
apt-get install -y cmake gcc g++ g++-10
;;
ubuntu-* | pop-* | linuxmint-* | debian-* | raspbian-* | neon-*)
case "$ID" in
ubuntu | pop | linuxmint | debian | raspbian | neon)
apt-get update
apt-get install -y cmake gcc g++
[ "$ID-$VERSION_ID" = ubuntu-20.04 ] && apt-get install -y g++-10
;;
fedora-* | amzn-* | rhel-*)
fedora | amzn | rhel)
dnf install -y gcc-g++ cmake glibc-static libstdc++-static diffutils util-linux
;;
opensuse-*)
zypper install -y make cmake gcc-c++ glibc-devel-static tar diffutils util-linux
;;
gentoo-*)
gentoo)
emerge-webrsync
FEATURES='getbinpkg binpkg-request-signature' emerge dev-build/cmake
;;
arch-* | archarm-* | artix-* | endeavouros-*)
arch | archarm | artix | endeavouros)
pacman -Sy --needed --noconfirm base-devel cmake util-linux
;;
void-*)
void)
xbps-install -Sy xbps bash make cmake gcc tar diffutils util-linux
;;
alpine-*)
alpine)
apk update
apk add bash make linux-headers cmake gcc g++
;;
clear-linux-*)
clear-linux-os)
swupd update
swupd bundle-add c-basic diffutils
;;
almalinux-*)
almalinux)
dnf install -y gcc-toolset-13-gcc-c++ gcc-toolset-13-libstdc++-devel cmake diffutils
;;
freebsd-*)
freebsd)
pkg update
pkg install -y cmake bash binutils gcc
;;
Expand Down
4 changes: 2 additions & 2 deletions install-cross-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ set -x
#
# Feel free to send me a PR if your OS is not on this list.

case "$ID-$VERSION_ID" in
ubuntu-* | pop-* | linuxmint-* | debian-* | raspbian-*)
case "$ID" in
ubuntu | pop | linuxmint | debian | raspbian)
apt-get install -y qemu-user {gcc,g++}-{i686,aarch64,riscv64,powerpc,powerpc64,powerpc64le,s390x,sparc64,m68k,sh4}-linux-gnu {gcc,g++}-arm-linux-gnueabihf
;;
*)
Expand Down

0 comments on commit 4ea2912

Please sign in to comment.