-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a3005ea
commit d082a20
Showing
6 changed files
with
317 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
__install_curl_via_syspm_on_debian() { | ||
apt-get -y update | ||
apt-get -y install curl | ||
} | ||
|
||
__install_curl_via_syspm_on_ubuntu() { | ||
apt-get -y update | ||
apt-get -y install curl | ||
} | ||
|
||
__install_curl_via_syspm_on_linuxmint() { | ||
apt-get -y update | ||
apt-get -y install curl | ||
} | ||
|
||
__install_curl_via_syspm_on_rocky() { | ||
dnf -y update | ||
dnf -y install curl | ||
} | ||
|
||
__install_curl_via_syspm_on_almalinux() { | ||
dnf -y update | ||
dnf -y install curl | ||
} | ||
|
||
__install_curl_via_syspm_on_centos() { | ||
dnf -y update | ||
dnf -y install curl | ||
} | ||
|
||
__install_curl_via_syspm_on_fedora() { | ||
dnf -y update | ||
dnf -y install curl | ||
} | ||
|
||
__install_curl_via_syspm_on_rhel() { | ||
dnf -y update | ||
dnf -y install curl | ||
} | ||
|
||
__install_curl_via_syspm_on_opensuse_leap() { | ||
zypper update -y | ||
zypper install -y curl | ||
} | ||
|
||
__install_curl_via_syspm_on_gentoo() { | ||
emerge net-misc/curl | ||
} | ||
|
||
__install_curl_via_syspm_on_manjaro() { | ||
pacman -Syyuu --noconfirm | ||
pacman -S --noconfirm curl | ||
} | ||
|
||
__install_curl_via_syspm_on_arch() { | ||
pacman -Syyuu --noconfirm | ||
pacman -S --noconfirm curl | ||
} | ||
|
||
__install_curl_via_syspm_on_void() { | ||
xbps-install -Syu xbps | ||
xbps-install -S | ||
xbps-install -Syu curl | ||
} | ||
|
||
__install_curl_via_syspm_on_alpine() { | ||
apk update | ||
apk add curl | ||
} | ||
|
||
__install_curl_via_syspm_on_Linux() { | ||
if [ -f /etc/os-release ] ; then | ||
. /etc/os-release | ||
|
||
if [ "$ID" = 'opensuse-leap' ] ; then | ||
ID='opensuse_leap' | ||
fi | ||
|
||
__install_curl_via_syspm_on_$ID | ||
fi | ||
} | ||
|
||
NATIVE_OS_KIND="$(uname -s)" | ||
|
||
__install_curl_via_syspm_on_$NATIVE_OS_KIND |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
__install_gcc_via_syspm_on_debian() { | ||
apt-get -y update | ||
apt-get -y install g++ | ||
} | ||
|
||
__install_gcc_via_syspm_on_ubuntu() { | ||
apt-get -y update | ||
apt-get -y install g++ | ||
} | ||
|
||
__install_gcc_via_syspm_on_linuxmint() { | ||
apt-get -y update | ||
apt-get -y install g++ | ||
} | ||
|
||
__install_gcc_via_syspm_on_rocky() { | ||
dnf -y update | ||
dnf -y install gcc-c++ | ||
} | ||
|
||
__install_gcc_via_syspm_on_almalinux() { | ||
dnf -y update | ||
dnf -y install gcc-c++ | ||
} | ||
|
||
__install_gcc_via_syspm_on_centos() { | ||
dnf -y update | ||
dnf -y install gcc-c++ | ||
} | ||
|
||
__install_gcc_via_syspm_on_fedora() { | ||
dnf -y update | ||
dnf -y install curl g++ | ||
} | ||
|
||
__install_gcc_via_syspm_on_rhel() { | ||
: | ||
} | ||
|
||
__install_gcc_via_syspm_on_opensuse_leap() { | ||
zypper update -y | ||
zypper install -y gcc-c++ | ||
} | ||
|
||
__install_gcc_via_syspm_on_gentoo() { | ||
emerge sys-devel/gcc | ||
} | ||
|
||
__install_gcc_via_syspm_on_manjaro() { | ||
pacman -Syyuu --noconfirm | ||
pacman -S --noconfirm gcc | ||
} | ||
|
||
__install_gcc_via_syspm_on_arch() { | ||
pacman -Syyuu --noconfirm | ||
pacman -S --noconfirm gcc | ||
} | ||
|
||
__install_gcc_via_syspm_on_void() { | ||
xbps-install -Syu xbps | ||
xbps-install -S | ||
xbps-install -Syu gcc | ||
} | ||
|
||
__install_gcc_via_syspm_on_alpine() { | ||
apk update | ||
apk add gcompat g++ linux-headers | ||
} | ||
|
||
__install_gcc_via_syspm_on_Linux() { | ||
if [ -f /etc/os-release ] ; then | ||
. /etc/os-release | ||
|
||
if [ "$ID" = 'opensuse-leap' ] ; then | ||
ID='opensuse_leap' | ||
fi | ||
|
||
__install_gcc_via_syspm_on_$ID | ||
fi | ||
} | ||
|
||
NATIVE_OS_KIND="$(uname -s)" | ||
|
||
__install_gcc_via_syspm_on_$NATIVE_OS_KIND |
Oops, something went wrong.